Exemplo n.º 1
0
 public void SetTurnDuration(GameObject timer, float duration)
 {
     if (timer != null)
     {
         TurnTimer timerBehavior = timer.GetComponent <TurnTimer>();
         if (timerBehavior != null)
         {
             timerBehavior.TurnDuration = duration;
         }
     }
 }
Exemplo n.º 2
0
 public void TurnStarted(GameObject timer)
 {
     if (timer != null)
     {
         TurnTimer timerBehavior = timer.GetComponent <TurnTimer>();
         if (timerBehavior != null)
         {
             timerBehavior.StartTurn();
         }
     }
 }
Exemplo n.º 3
0
 public void SetEndTurnCallback(GameObject timer, EndTurnDeletegate endTurnCallback)
 {
     if (timer != null)
     {
         TurnTimer timerBehavior = timer.GetComponent <TurnTimer>();
         if (timerBehavior != null)
         {
             timerBehavior.EndTurn = endTurnCallback;
         }
     }
 }