// Use this for initialization public void Start() { //loads main menu MyScreen1.Start(); DataController.Start(); Application.targetFrameRate = 60; //ProfilerHere(); ClassContainer = General.Create(Root.classesContainer); BuildsContainer = General.Create(Root.classesContainer, name: "BuildsContainer"); PersonObjectContainer = General.Create(Root.classesContainer, name: "PersonObjectsContainer"); MeshBatchContainer = General.Create(Root.classesContainer, name: "MeshBatchContainer"); if (Application.loadedLevelName == "Lobby") { //Settings.PlayMusic(); } else { if (gameScene == null) { gameScene = (GameScene)General.Create(Root.gameScene, container: ClassContainer.transform); InputMain = (InputMain)General.Create(Root.inputMain, container: ClassContainer.transform); } } MouseListener.Start(); ManagerReport.Start(); AudioCollector.RedoGame(); }
private void Load1() { Debug.Log("first load"); //loads main menu MyScreen1.Start(); DataController.Start(); Application.targetFrameRate = 60; //ProfilerHere(); ManagerReport.Start(); MouseListener.Start(); if (//Camera.main != null && _audioPlayer == null && !audioWas) { audioWas = true; //bz camera needs to be initiated already _audioPlayer = new AudioPlayer(); } //AudioCollector.RedoGame(); }