Beispiel #1
0
 public void SwitchState(Type state, StateTransition startTransition, StateTransition endTransition)
 {
     this.CurrentState = null;
     this.CurrentState = (State)Activator.CreateInstance(state);
 }
 public static void SwitchState(State state)
 {
     Core.SwitchState(state);
 }
Beispiel #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);
        }
Beispiel #4
0
 public void SwitchState(State state)
 {
     this.CurrentState = null;
     this.CurrentState = state;
 }