public void LoadLevel(Map map, string name, AngryBallsEnvironment.GameState gameState) { if(gameState == AngryBallsEnvironment.GameState.dialog) { AngryBallsEnvironment.name = name; jsonReader = new JSONEditor(); jsonReader.ReadLevel(map, name, gameState); } }
public void Initialize(AngryBallsEnvironment.GameState gameState, string name) { JSONEditor jsonReader = new JSONEditor(); jsonReader.ReadLevel(this, name, gameState); TBIList.Initialize(); }