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); }
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); }
public void SwitchState(State state) { this.CurrentState = null; this.CurrentState = state; }