コード例 #1
0
 // 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;
 }
コード例 #2
0
 // Use this for initialization
 public virtual void Start()
 {
     player1 = FindObjectOfType<PlayerManagerGreen>();
     player2 = FindObjectOfType<PlayerManagerRed>();
 }