Add metadata files for LeanTween assets and update existing prefab references
This commit is contained in:
@@ -56,6 +56,12 @@ namespace Infrastructure.Unity
|
||||
if (pickupVfx)
|
||||
{
|
||||
var vfx = Instantiate(pickupVfx, transform.position, Quaternion.identity);
|
||||
var main = vfx.main;
|
||||
|
||||
meshRenderer.GetPropertyBlock(_propBlock);
|
||||
var currentColor = _propBlock.GetColor(ColorProperty);
|
||||
main.startColor = currentColor;
|
||||
|
||||
Destroy(vfx.gameObject, 2f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user