Esempio n. 1
0
        protected void SetAction(int index)
        {
            currentAction     = actions[index];
            currentActionType = currentAction.actionType;

            SetActionBehavior(currentActionType);
        }
Esempio n. 2
0
        public override void StartActionBehavior(_Action action)
        {
            if (action.actionType == ActionType.Watch)
            {
                direction = action.watchDirection;

                SetWatch();
            }
            else if (action.actionType == ActionType.Search)
            {
                SetWatch(action.watchRotation);
            }
        }
Esempio n. 3
0
 public override void StartActionBehavior(_Action action)
 {
     area = action.area;
     SetMove(action.destination, true);
 }
Esempio n. 4
0
 public override void StartActionBehavior(_Action action)
 {
     currentTime = action.timeToWait;
     wait        = true;
 }
Esempio n. 5
0
 public virtual void ResumeActionBehavior(_Action action)
 {
     StartActionBehavior(action);
 }
Esempio n. 6
0
 public abstract void StartActionBehavior(_Action action);