private void SpawnVFX() { var color = _gameConfig.GetPlatformColorBy(Type); _vfx.GetComponent <Renderer>().sharedMaterial.color = color; _vfx.Play(); }
private void OnNextPlatform(PlatformType type) { var color = _config.GetPlatformColorBy(type); Renderer.material.color = color; }