Exemplo n.º 1
0
 private void Update()
 {
     if (currentState != null)
     {
         currentState.Execute();
     }
 }
Exemplo n.º 2
0
 public void Execute()
 {
     if (CurrentState != null && CurrentState.enabled)
     {
         CurrentState.Execute();
     }
 }
Exemplo n.º 3
0
        // Update is called once per frame
        public void Update()
        {
            if (globalState != null)
            {
                globalState.Execute(owner);
            }

            if (currentState != null)
            {
                currentState.Execute(owner);
            }
        }