create() public method

Override create() and initialize your game objects here
public create ( ) : void
return void
示例#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();
 }
示例#2
0
 /// <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();
 }