Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (_state == State.IDLE && characterManager.AllPlayersReady())
     {
         PlaySound(playersReady);
         text.color = new Color32(255, 255, 0, 255);
         _state     = State.READY;
     }
     else if (_state == State.READY && !characterManager.AllPlayersReady())
     {
         text.color = new Color32(255, 255, 0, 0);
         _state     = State.IDLE;
     }
 }