示例#1
0
    public IEnumerator DelayedAIAction(DecayingDev.Action _AIAction, string[] args, float delayTime)
    {
        yield return(new WaitForSeconds(delayTime));

        _AIAction.Execute(args, gameObject);
        state = ScheduleState.RunningAction;
    }
示例#2
0
    public void ExecuteSecondAction(List <string> args)
    {
        PauseAction();
        state = ScheduleState.SecondaryAction;

        CurSecondaryAction.Execute(args.ToArray(), gameObject);
        CurAction = null;
    }