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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace Infrastructure.Unity
|
||||
|
||||
public static ThemePalette CyberpunkTheme => new ThemePalette
|
||||
{
|
||||
StableColor = new Color(0.1f, 0.1f, 0.3f), // Dark Blue
|
||||
WarningColor = new Color(1f, 0f, 1f) // Neon Magenta
|
||||
StableColor = new Color(0.23f, 0.53f, 0.7f),
|
||||
WarningColor = new Color(1f, 0f, 1f)
|
||||
};
|
||||
|
||||
public static ThemePalette GoldenTheme => new ThemePalette
|
||||
|
||||
@@ -30,6 +30,8 @@ namespace Infrastructure.Unity
|
||||
|
||||
private Action<TileViewAdapter> _onReturnToPool;
|
||||
private float _targetAlpha = 1f;
|
||||
|
||||
public MeshRenderer MeshRenderer => meshRenderer;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user