示例#1
0
 public void EndTurn()
 {
     if (onEndTurn != null)
     {
         onEndTurn.Invoke();
     }
 }
示例#2
0
 public void CallEndTurn()
 {
     if (endTurn != null)
     {
         endTurn.Invoke();
     }
     BackInTimeManager.inst.StoreCrtTurnActions();
 }
示例#3
0
    /// <summary>
    /// End a turn after a number of seconds has passed
    /// </summary>
    /// <param name="turnToEnd">Turn To End (Player or AI)</param>
    /// <param name="time">Time (seconds) to wait</param>
    /// <returns></returns>
    protected IEnumerator EndTurnAfterTime(GameStateManager.GameTurn turnToEnd, float time)
    {
        //Wait for time
        TurnInteractionEnded = true;
        yield return(new WaitForSecondsRealtime(time));

        //End Turn
        EndTurn?.Invoke(turnToEnd);
        TurnInteractionEnded = false;
    }
 public void ButtonEndTurn()
 {
     OnEndTurn?.Invoke();
 }
示例#5
0
 public void OnEndTurn(object sender, EventArgs args)
 {
     EndTurn?.Invoke(sender, args);
 }
示例#6
0
 public void EndTurnClicked()
 {
     EndTurn?.Invoke();
 }