Пример #1
0
    public void ChangeState(EAIStatus type, float t)
    {
        EAIStatusChange newState = new EAIStatusChange(type, t);

        StateStack.Clear();
        StateStack.Add(newState);
        if (type == EAIStatus.Kill)
        {
            SubStatus = EAISubStatus.KillGotoTarget;
            Debug.LogError("kill");
            killTarget = owner.GetLockedTarget();
        }
        ResetAIKey();
    }
Пример #2
0
 public EAIStatusChange(EAIStatus t, float l)
 {
     type = t;
     last = l;
 }
Пример #3
0
    public void PushState(EAIStatus type, float t)
    {
        EAIStatusChange newState = new EAIStatusChange(type, t);

        StateStack.Add(newState);
    }