protected void SetAction(int index) { currentAction = actions[index]; currentActionType = currentAction.actionType; SetActionBehavior(currentActionType); }
public override void StartActionBehavior(_Action action) { if (action.actionType == ActionType.Watch) { direction = action.watchDirection; SetWatch(); } else if (action.actionType == ActionType.Search) { SetWatch(action.watchRotation); } }
public override void StartActionBehavior(_Action action) { area = action.area; SetMove(action.destination, true); }
public override void StartActionBehavior(_Action action) { currentTime = action.timeToWait; wait = true; }
public virtual void ResumeActionBehavior(_Action action) { StartActionBehavior(action); }
public abstract void StartActionBehavior(_Action action);