| | |
| | | }
|
| | | protected override void BindController()
|
| | | {
|
| | | var config = Config.Instance.Get<FuncConfigConfig>("TaskContinue");
|
| | | var config = FuncConfigConfig.Get("TaskContinue");
|
| | | FabaoId = int.Parse(config.Numerical1);
|
| | | AwaitSecond = int.Parse(config.Numerical2);
|
| | | PlayerHead();
|
| | |
| | | IsCloseWindow();
|
| | | typesPeaker = -1;
|
| | | storyMissionsID = taskmodel._TaskNow;
|
| | | var config = Config.Instance.Get<StoryMissionsConfig>(storyMissionsID);
|
| | | var config = StoryMissionsConfig.Get(storyMissionsID);
|
| | | if (config.TaskMusic != 0)
|
| | | {
|
| | | SoundPlayer.Instance.PlayNpcAudio(config.TaskMusic);
|
| | |
| | | private void OnClickMarkRay()
|
| | | {
|
| | | timeType = 0;
|
| | | var config = Config.Instance.Get<StoryMissionsConfig>(storyMissionsID);
|
| | | var config = StoryMissionsConfig.Get(storyMissionsID);
|
| | | if (config == null)
|
| | | {
|
| | | return;
|
| | |
| | | }
|
| | | private void OnClickSKIPButton()
|
| | | {
|
| | | var config = Config.Instance.Get<StoryMissionsConfig>(storyMissionsID);
|
| | | var config = StoryMissionsConfig.Get(storyMissionsID);
|
| | | if (config != null)
|
| | | {
|
| | | SessionEnd(TaskType.OK);
|
| | |
| | |
|
| | | m_PlayerNameText.text = PlayerDatas.Instance.baseData.PlayerName;
|
| | |
|
| | | string platercContentKey = Config.Instance.Get<StoryMissionsConfig>(storyMissionsID).content[IsMultistage];
|
| | | var config = Config.Instance.Get<TASKINFOConfig>(string.Format(platercContentKey, stepNum));
|
| | | string platercContentKey = StoryMissionsConfig.Get(storyMissionsID).content[IsMultistage];
|
| | | var config = TASKINFOConfig.Get(string.Format(platercContentKey, stepNum));
|
| | | if (config != null)
|
| | | {
|
| | | m_ContentText.text = config.show_writing;
|
| | |
| | | m_BaseboardImageNPC.SetActive(true);
|
| | | m_BaseboardImagePlayer.SetActive(false);
|
| | | }
|
| | | var configStoryMissions = Config.Instance.Get<StoryMissionsConfig>(storyMissionsID);
|
| | | var configStoryMissions = StoryMissionsConfig.Get(storyMissionsID);
|
| | | if (configStoryMissions == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | int npcId = configStoryMissions.NpcID[IsMultistage];
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(npcId);
|
| | | var npcConfig = NPCConfig.Get(npcId);
|
| | | m_NPCNameText.text = npcConfig.charName;
|
| | | string npcContentKey = configStoryMissions.content[IsMultistage];
|
| | | var taskInfo = Config.Instance.Get<TASKINFOConfig>(string.Format(npcContentKey, stepNum));
|
| | | var taskInfo = TASKINFOConfig.Get(string.Format(npcContentKey, stepNum));
|
| | | if (taskInfo == null)
|
| | | {
|
| | | DebugEx.LogError("TASKINFOConfig中没有找到对应的Key");
|
| | |
| | | }
|
| | | private void PlayerHead()
|
| | | {
|
| | | string[] headStr1 = Config.Instance.Get<FuncConfigConfig>("StoryTaskIcon").Numerical1.Split('|');
|
| | | string[] headStr2 = Config.Instance.Get<FuncConfigConfig>("StoryTaskIcon").Numerical2.Split('|');
|
| | | string[] headStr1 = FuncConfigConfig.Get("StoryTaskIcon").Numerical1.Split('|');
|
| | | string[] headStr2 = FuncConfigConfig.Get("StoryTaskIcon").Numerical2.Split('|');
|
| | | for (int i = 0; i < headStr1.Length; i++)
|
| | | {
|
| | | if (!PlayerIcon.ContainsKey(int.Parse(headStr1[i])))
|
| | |
| | | private bool IsDungeon()
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var mapConfig = Config.Instance.Get<MapConfig>(mapId);
|
| | | var mapConfig = MapConfig.Get(mapId);
|
| | | return mapConfig != null && mapConfig.MapFBType != 0;
|
| | | }
|
| | | }
|