Exemplo n.º 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);
    }
Exemplo n.º 2
0
 public void ClearAI(eAIStateType stateType)
 {
     m_listNextAi.RemoveAll(nextAI => nextAI.m_StateType == stateType);
 }
Exemplo n.º 3
0
 protected virtual void _ProcessIdle()
 {
     m_CurrentAIState = eAIStateType.AI_STATE_IDLE;
     _ChangeAnimation();
 }
Exemplo n.º 4
0
 protected virtual void _ProcessRun()
 {
     m_CurrentAIState = eAIStateType.AI_STATE_RUN;
     _ChangeAnimation();
 }
Exemplo n.º 5
0
 protected virtual void _ProcessAttack()
 {
     TargetComponent.ThrowEvent("SELECT_SKILL", 0);
     m_CurrentAIState = eAIStateType.AI_STATE_ATTACK;
     _ChangeAnimation();
 }