示例#1
0
    public override void Initialize()
    {
        instance = this;

        LoadData(stageData.text.Split('\n'));

        InitEvent();
    }
示例#2
0
    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;
    }