// Use this for initialization public virtual void Start() { player1 = FindObjectOfType<PlayerManagerGreen>(); player2 = FindObjectOfType<PlayerManagerRed>(); if (player1.isActive == true) LastPlayerActive = 2; if (player2.isActive == true) LastPlayerActive = 1; }
// Use this for initialization public virtual void Start() { player1 = FindObjectOfType<PlayerManagerGreen>(); player2 = FindObjectOfType<PlayerManagerRed>(); }