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