Example #1
0
    public virtual void AddNextAI(eAIStateType nextStateType, BaseObject targetObject = null, Vector3 position = new Vector3())
    {
        stNextAI nextAi = new stNextAI();
        nextAi.m_StateType = nextStateType;
        nextAi.m_TargetObject = targetObject;
        nextAi.m_Position = position;

        m_listNextAi.Add(nextAi);
    }
Example #2
0
 public void ClearAI(eAIStateType stateType)
 {
     m_listNextAi.RemoveAll(nextAI => nextAI.m_StateType == stateType);
 }
Example #3
0
 protected virtual void _ProcessIdle()
 {
     m_CurrentAIState = eAIStateType.AI_STATE_IDLE;
     _ChangeAnimation();
 }
Example #4
0
 protected virtual void _ProcessRun()
 {
     m_CurrentAIState = eAIStateType.AI_STATE_RUN;
     _ChangeAnimation();
 }
Example #5
0
 protected virtual void _ProcessAttack()
 {
     TargetComponent.ThrowEvent("SELECT_SKILL", 0);
     m_CurrentAIState = eAIStateType.AI_STATE_ATTACK;
     _ChangeAnimation();
 }