Esempio n. 1
0
 public void SwitchState(Type state, StateTransition startTransition, StateTransition endTransition)
 {
     this.CurrentState = null;
     this.CurrentState = (State)Activator.CreateInstance(state);
 }
Esempio n. 2
0
 public static void SwitchState(State state)
 {
     Core.SwitchState(state);
 }
Esempio n. 3
0
        public void SwitchState(State state)
        {
            if (this.CurrentState != null)
            {
                Controller.LayerController.GetLayer("base").RemoveAllChildren();
            }

            this.CurrentState = null;
            this.CurrentState = state;
            Controller.LayerController.GetLayer("base").AddChild(this.CurrentState);
        }
Esempio n. 4
0
 public void SwitchState(State state)
 {
     this.CurrentState = null;
     this.CurrentState = state;
 }