void Awake() { Instance = this; currentPaletteSeed = Random.Range(0, palettes.palette.Length); Debug.Log("Palette " + currentPaletteSeed + " selected"); }
// Start is called before the first frame update void Start() { ParticleSystem particles = GetComponent <ParticleSystem>(); ParticleSystem.MainModule mainModule = particles.main; Color c = PlanetColorManager.GetColor(colorId); c.a = alpha; mainModule.startColor = c; particles.Play(); }