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(); }
public EAIStatusChange(EAIStatus t, float l) { type = t; last = l; }
public void PushState(EAIStatus type, float t) { EAIStatusChange newState = new EAIStatusChange(type, t); StateStack.Add(newState); }