Example #1
0
    private void Update()
    {
        stateMachine?.Tick();
#if UNITY_EDITOR
        Debug_CurrentState  = stateMachine.currentState?.ToString();
        Debug_PreviousState = stateMachine.previousState?.ToString();
#endif

        // currentBehaviour.Update();
    }
Example #2
0
 public void Tick()
 {
     if (isActive == true)
     {
         if (useAI == true)
         {
             if (isPlayerTurn == false)
             {
                 aIStateMachine.Tick();
             }
         }
     }
 }
 ActionResult IAINode.Tick(IAIController ai)
 {
     return(_stateMachine.Tick(ai));
 }