Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (!m_isOn && other.tag == "Player")
     {
         SceneModule _sceneModule = (SceneModule)GameManager.GameManagerObj.GetComponent <GameManager>().GetModuleByName("SceneModule");
         if (GameManager.SceneConfigId == 0 && other.name == "xiangyu(Clone)")
         {
             MissionList.Instance.m_mission1_1 = true;
             _sceneModule.ArriveSceneFinal();
             m_isOn = true;
         }
         else if (GameManager.SceneConfigId == 1 && other.name == "xiangyu(Clone)")
         {
             MissionList.Instance.m_mission2_1 = true;
             _sceneModule.ArriveSceneFinal();
             m_isOn = true;
         }
         else if (GameManager.SceneConfigId == 2 && other.name == "yuji(Clone)")
         {
             MissionList.Instance.m_mission3_1 = true;
             _sceneModule.ArriveSceneFinal();
             m_isOn = true;
         }
         else if (GameManager.SceneConfigId == 3 && other.name == "yuji(Clone)")
         {
             MissionList.Instance.m_mission4_1 = true;
             _sceneModule.ArriveSceneFinal();
             m_isOn = true;
         }
     }
 }
Example #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (!m_isOn && other.gameObject.tag == "Player")
     {
         SceneModule _sceneModule = (SceneModule)GameManager.GameManagerObj.GetComponent <GameManager>().GetModuleByName("SceneModule");
         _sceneModule.ArriveSceneFinal();
         m_isOn = true;
     }
 }
Example #3
0
        private void DelayDestroyXiangFollow(EventArgs args)
        {
            for (int _i = 0; _i < m_followList.Count; ++_i)
            {
                GameObject.Destroy(m_followList[_i]);
            }
            m_followList.Clear();
            SceneModule _sceneModule = (SceneModule)GameManager.GameManagerObj.GetComponent <GameManager>().GetModuleByName("SceneModule");

            _sceneModule.ArriveSceneFinal();
            _sceneModule.GotoNextScene();
        }