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