create() public method

Override create() and initialize your game objects here
public create ( ) : void
return void
コード例 #1
0
ファイル: FlxG.cs プロジェクト: bpercevic/flixel-XNA
 /// <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();
 }
コード例 #2
0
ファイル: FlxG.cs プロジェクト: bpercevic/flixel-XNA
 /// <summary>
 /// Call this to switch to a new state
 /// @use  FlxG.switchState(new NewState());
 /// </summary>
 /// <param name="State"></param>
 static public void switchState(FlxState State)
 {
     state.destroy();
     state = State;
     state.create();
 }