// 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)]; }
// Is called before Start private void Awake() { playishInput = GetComponent <PlayishInput>(); }
// Is called before Start private void Awake() { player = GetComponent <Player>(); rb = GetComponent <Rigidbody2D>(); playishInput = GetComponent <PlayishInput>(); }