Esempio n. 1
0
 private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
 {
     MyEvidenceDic = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.EvidenceArchiveData.EvidenceList;
     if (MyEvidenceDic == null)
     {
         MyEvidenceDic = new Dictionary <string, SingleEvidenceData>();
     }
 }
Esempio n. 2
0
        private void OnPlayerPreSaveArchive(object sender, PlayerPreSaveArchiveEvent e)
        {
            SoundServiceArchiveData data = new SoundServiceArchiveData();

            data.BgmName = m_currentBgm;

            GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.SoundServiceArchiveData = data;
        }
Esempio n. 3
0
        private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
        {
            SoundServiceArchiveData data = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.SoundServiceArchiveData;

            if (data.BgmName != null)
            {
                m_currentBgm = data.BgmName;
                PlayBgm(m_currentBgm);
            }
        }
Esempio n. 4
0
        private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
        {
            var data = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData
                       .StoryArchiveData;

            m_readLabel = data.ReadLabels;
            if (m_readLabel == null)
            {
                m_readLabel = new Dictionary <string, List <string> >();
            }
        }
Esempio n. 5
0
        private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
        {
            var data = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData
                       .StoryArchiveData;

            m_logInfos = data.LogInfos;
            if (m_logInfos == null)
            {
                m_logInfos = new List <LogInfo>();
            }
        }
Esempio n. 6
0
 private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
 {
     m_isStoryTriggered       = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.MissionArchieData.StoryTriggered;
     m_objectTriggeredCounter = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.MissionArchieData.ObjectTriggeredCounter;
     if (m_isStoryTriggered == null)
     {
         m_isStoryTriggered = new List <string> ();
     }
     if (m_objectTriggeredCounter == null)
     {
         m_objectTriggeredCounter = new Dictionary <string, int> ();
     }
 }
Esempio n. 7
0
 private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
 {
     MyTipsDic = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.TipsArchiveData.TipsList;
     if (MyTipsDic == null)
     {
         MyTipsDic = new Dictionary <string, TipData>();
         if (m_tipsConfig != null)
         {
             TipData tipData;
             foreach (var data in m_tipsConfig)
             {
                 MyTipsDic.Add(data.Value.tip, new TipData(data.Value.tip, data.Value.description, false));
             }
         }
     }
 }
        //-----------------------------------------------
        private void OnPlayerPreSaveArchive(object sender, PlayerPreSaveArchiveEvent e)
        {
            MissionArchiveData data = new MissionArchiveData();

            Vector3 pos = CoreContainer.Instance.GetPlayerPosition();

            data.PlayerPositionX = pos.x;
            data.PlayerPositionY = pos.y;
            data.PlayerPositionZ = pos.y;

            data.CurrentGameScene       = GamePlay.Stage.GameSceneManager.Instance.GetCurrentSceneEnum();
            data.CurrentMission         = GamePlay.Stage.MissionSceneManager.Instance.GetCurrentMissionEnum();
            data.StoryTriggered         = m_isStoryTriggered;
            data.ObjectTriggeredCounter = m_objectTriggeredCounter;

            GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.MissionArchieData = data;
        }
Esempio n. 9
0
        private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
        {
            var data = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData
                       .EvidenceArchiveData;

            MyEvidenceDic            = data.EvidenceList;
            m_removedEvidenceStoryId = data.RemovedEvidenceStory;
            if (MyEvidenceDic == null)
            {
                MyEvidenceDic = new Dictionary <string, SingleEvidenceData>();
            }
            if (m_removedEvidenceStoryId == null)
            {
                m_removedEvidenceStoryId = new List <string>();
            }
            InitEvidenceStoryInfo();
        }
Esempio n. 10
0
        private void RefreshTouchInfo()
        {
            m_config = GlobalManager.GetControllerManager().CGSceneController.GetTouchConfigByPointID(m_pointInfo.ID);
            if (m_isMouseEnter)
            {
                EventManager.Instance.SendEvent(new ChangeCursorEvent()
                {
                    cursorKey = GetMouseKeyByTouchType(m_config.touchType)
                });
            }
//            PrefabManager.Instance.InstantiateAsync<GameObject>(m_config.mouseEffectKey, (result) =>
//            {
//                if (m_mouseEffectObj != null)
//                {
//                    Destroy(m_mouseEffectObj);
//                }
//                m_mouseEffectObj = result.result as GameObject;
//            },m_effectObj);
        }
        private void OnPlayerLoadArchive(object sender, PlayerLoadArchiveEvent e)
        {
            MissionArchiveData data = GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.MissionArchieData;

            SceneLookupEnum gameSceneEnum = data.CurrentGameScene;
            MissionEnum     missionEnum   = data.CurrentMission;

            if (gameSceneEnum != SceneLookupEnum.World_Invalid && gameSceneEnum != SceneLookupEnum.World_GameRoot && missionEnum != MissionEnum.None)
            {
                Vector3 PlayerPos = new Vector3(data.PlayerPositionX, data.PlayerPositionY, data.PlayerPositionZ);
                CoreContainer.Instance.SetPlayerPosition(PlayerPos);
                GameSceneManager.Instance.LoadScene(gameSceneEnum, "", () =>
                {
                    MissionSceneManager.Instance.SetCurrentMission(missionEnum);
                    MissionSceneManager.Instance.LoadCurrentMissionScene();
                    //if (MissionSceneManager.Instance.IsMissionSceneExist(missionEnum))
                    //{
                    //    MissionSceneManager.Instance.LoadMissionScene(missionEnum);
                    //}
                    //else
                    //{
                    //    MissionSceneManager.Instance.LoadMissionScene(MissionEnum.None);
                    //}
                });
            }
            else
            {
                Debug.LogError("Game Scene Enum: " + missionEnum + "nMission Scene Enum:" + gameSceneEnum + "\nIs not exist.");
            }

            m_isStoryTriggered       = data.StoryTriggered;
            m_objectTriggeredCounter = data.ObjectTriggeredCounter;
            if (m_isStoryTriggered == null)
            {
                m_isStoryTriggered = new List <string>();
            }
            if (m_objectTriggeredCounter == null)
            {
                m_objectTriggeredCounter = new Dictionary <string, int>();
            }
        }
Esempio n. 12
0
 private void OnPlayerPreSaveArchive(object sender, PlayerPreSaveArchiveEvent e)
 {
     GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.CgSceneArchiveData.CgSceneId = m_model.SceneID;
 }
Esempio n. 13
0
 //-----------------------------------------------
 private void OnPlayerPreSaveArchive(object sender, PlayerPreSaveArchiveEvent e)
 {
     GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.MissionArchieData.StoryTriggered = m_isStoryTriggered;
     GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.MissionArchieData.ObjectTriggeredCounter = m_objectTriggeredCounter;
 }
Esempio n. 14
0
 private void OnPlayerPreSaveArchive(object sender, PlayerPreSaveArchiveEvent e)
 {
     GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.EvidenceArchiveData.EvidenceList = MyEvidenceDic;
 }
Esempio n. 15
0
 private void OnPlayerPreSaveArchive(object sender, PlayerPreSaveArchiveEvent e)
 {
     GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.StoryArchiveData.ReadLabels = m_readLabel;
 }
Esempio n. 16
0
 private void OnPlayerPreSaveArchive(object sender, PlayerPreSaveArchiveEvent e)
 {
     GlobalManager.GetControllerManager().PlayerArchiveController.CurrentArchiveData.StoryArchiveData.LogInfos = m_logInfos;
 }