Update player prefab and theme colors; refine visual effects and VFX instantiation

This commit is contained in:
2025-12-13 16:25:05 +01:00
parent c1d0af9a39
commit 2d89493869
8 changed files with 94 additions and 78 deletions

View File

@@ -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);
}
}
};

View File

@@ -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

View File

@@ -30,6 +30,8 @@ namespace Infrastructure.Unity
private Action<TileViewAdapter> _onReturnToPool;
private float _targetAlpha = 1f;
public MeshRenderer MeshRenderer => meshRenderer;
private void Awake()
{