public override void Initialize() { instance = this; LoadData(stageData.text.Split('\n')); InitEvent(); }
void OnSceneLoaded(Scene scene, LoadSceneMode mode) { if (SceneLoader.instance.GetCurrScene() == Define.SceneInfo.MainStage) { GameRunningTest manager = GameObject.Find("GameObjectManager").GetComponent <GameRunningTest>(); manager.stageData = worldDatabase.data[world].stageData[stage].stageEventData; manager.stageScript = worldDatabase.data[world].stageData[stage].stageDialog; manager.stage = stage; manager.world = world; } SceneManager.sceneLoaded -= OnSceneLoaded; }