private void Update() { stateMachine?.Tick(); #if UNITY_EDITOR Debug_CurrentState = stateMachine.currentState?.ToString(); Debug_PreviousState = stateMachine.previousState?.ToString(); #endif // currentBehaviour.Update(); }
public void Tick() { if (isActive == true) { if (useAI == true) { if (isPlayerTurn == false) { aIStateMachine.Tick(); } } } }
ActionResult IAINode.Tick(IAIController ai) { return(_stateMachine.Tick(ai)); }