Ejemplo n.º 1
0
 public virtual void Update()
 {
     activeState = GetCurrentState();
     if (activeState != null)
     {
         activeState.RunState();
     }
 }
Ejemplo n.º 2
0
 public void PushState(PhysChemState state)
 {
     stateStack.Insert(0, state);
     stateStack[0].Start();
 }
Ejemplo n.º 3
0
 public void PopState(PhysChemState state)
 {
     stateStack.Remove(state);
 }