public void OnSceneAwake(GameObject scene)
            {
                SceneBattle component = (SceneBattle)scene.GetComponent <SceneBattle>();

                if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
                {
                    return;
                }
                CriticalSection.Leave(CriticalSections.SceneChange);
                CriticalSection.Leave(CriticalSections.SceneChange);
                SceneAwakeObserver.RemoveListener(new SceneAwakeObserver.SceneEvent(this.OnSceneAwake));
                component.StartQuest(this.Quest.iname, this.InitData);
            }
        private void OnSceneAwake(GameObject scene)
        {
            SceneBattle component = (SceneBattle)scene.GetComponent <SceneBattle>();

            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
            {
                return;
            }
            CriticalSection.Leave(CriticalSections.SceneChange);
            CriticalSection.Leave(CriticalSections.SceneChange);
            SceneAwakeObserver.RemoveListener(new SceneAwakeObserver.SceneEvent(this.OnSceneAwake));
            component.StartQuest(this.mStartingQuest.iname, this.mQuestData);
            ((Behaviour)this).set_enabled(false);
            this.ActivateOutputLinks(1);
        }