Exemplo n.º 1
0
 private void CountdownOneSecond()
 {
     if (CurrentTime > 0)
     {
         CountdownText.text = CurrentTime.ToString();
         CurrentTime--;
     }
     else
     {
         CountdownText.text = "Brawl!";
         StartCoroutine(HideCountdownText());
         RoundReferee.StartRound();
         CancelInvoke("CountdownOneSecond");
     }
 }
Exemplo n.º 2
0
 public void Awake()
 {
     // init singleton
     Debug.Assert(instance == null, this.gameObject.name + " - RoundReferee : must be unique!");
     instance = this;
 }
    public void MSG_Death()
    {
        PlayerInputCtlr playerInputCtlr = this.gameObject.GetComponent <PlayerInputCtlr>();

        RoundReferee.RegisterDeath((int)playerInputCtlr.m_nbPlayer);
    }