Пример #1
0
 /// <summary>
 /// Delay = seconds
 /// </summary>
 /// <param name="action"></param>
 /// <param name="delay"></param>
 protected void Action(Action action, float delay)
 {
     DelayedActions.Add(new KeyValuePair <Action, float>(action, delay));
 }
Пример #2
0
 public GameState AddDelayedAction(DelayedAction action)
 {
     return(WithDelayedActions(DelayedActions.Add(action)));
 }