Example #1
0
    // Use this for initialization (is called before Start())
    void Awake()
    {
        // Stores our references for further use
        rb                   = GetComponent <Rigidbody2D>();
        playishInput         = GetComponent <PlayishInput>();
        playerParticleSystem = GetComponentInChildren <ParticleSystem>();

        // Makes sure every new player has a different color on it's particle system
        playerParticleSystem.startColor = playerColors[Random.Range(0, playerColors.Length)];
    }
Example #2
0
 // Is called before Start
 private void Awake()
 {
     playishInput = GetComponent <PlayishInput>();
 }
Example #3
0
 // Is called before Start
 private void Awake()
 {
     player       = GetComponent <Player>();
     rb           = GetComponent <Rigidbody2D>();
     playishInput = GetComponent <PlayishInput>();
 }