public override void Initialize() { //Init Menu map from tiled TiledMap tiledMenu = new TiledMap(MainConfig.CONTENT_MAP_DIRECTORY + "Menu.xml", director.Content, MainConfig.PIPELINE_GRAPHICS_DIRECTORY, scene); BaseScreenSize = tiledMenu.MapSize; //Init temporary players, which need to join to registered in the scene tempPlayer = new Player[4]; selectedPlayers = new bool[4]; numOfReadyPlayers = 0; for (var i = 0; i < 4; i++) { tempPlayer[i] = new Player((PlayerIndex)i, new MenuInputMapper(true)); } //************************* INIT SOUND MANAGER ************************// MatchSoundManager matchSoundManager = new MatchSoundManager(director.Content); scene.RegisterMatchSoundManager(matchSoundManager); #if DEBUG matchSoundManager.IsMuted = true; #endif matchSoundManager.PlaySong(SongEnumeration.Title); }
private void Awake() { resultsScreen = false; if (Instance == null) { Instance = this; } }
public void RegisterMatchSoundManager(MatchSoundManager matchSoundManager) { this.MatchSoundManager = matchSoundManager; }