public IEnumerator DelayedAIAction(DecayingDev.Action _AIAction, string[] args, float delayTime) { yield return(new WaitForSeconds(delayTime)); _AIAction.Execute(args, gameObject); state = ScheduleState.RunningAction; }
public void ExecuteSecondAction(List <string> args) { PauseAction(); state = ScheduleState.SecondaryAction; CurSecondaryAction.Execute(args.ToArray(), gameObject); CurAction = null; }