Update player prefab and theme colors; refine visual effects and VFX instantiation
This commit is contained in:
@@ -161,7 +161,13 @@ namespace Infrastructure.Unity
|
||||
|
||||
if (tileBreakVfxPrefab)
|
||||
{
|
||||
Instantiate(tileBreakVfxPrefab, position, Quaternion.identity);
|
||||
var vfx = Instantiate(tileBreakVfxPrefab, position, Quaternion.identity);
|
||||
var main = vfx.main;
|
||||
|
||||
var currentColor = go.MeshRenderer.material.color;
|
||||
main.startColor = currentColor;
|
||||
|
||||
Destroy(vfx.gameObject, 2f);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user