fliXNA_xbox.FlxState.create C# (CSharp) Method

create() public method

Override create() and initialize your game objects here
public create ( ) : void
return void
        public virtual void create()
        {
            hud = new FlxGroup();
            add(hud);
        }

Usage Example

示例#1
0
 /// <summary>
 /// Call this to switch to a new state
 /// @use  FlxG.switchState(new NewState());
 /// </summary>
 /// <param name="State"></param>
 public static void switchState(FlxState State)
 {
     state.destroy();
     state = State;
     state.create();
 }
All Usage Examples Of fliXNA_xbox.FlxState::create