Beispiel #1
0
    void Awake()
    {
        Instance           = this;
        currentPaletteSeed = Random.Range(0, palettes.palette.Length);

        Debug.Log("Palette " + currentPaletteSeed + " selected");
    }
Beispiel #2
0
    // 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();
    }