少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-13 2df58aeacbf1177ec01167bdeccfe89d6a8d5804
System/MainInterfacePanel/TaskBoxBGMWin.cs
@@ -56,7 +56,7 @@
        #region Built-in
        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);
            AwaitSecondNext = int.Parse(config.Numerical3);
@@ -94,7 +94,7 @@
            if (!taskmodel.MainTaskDic.ContainsKey(_TaskId))
            {
                var npcConfig = Config.Instance.Get<NPCConfig>(_NpcID);
                var npcConfig = NPCConfig.Get(_NpcID);
                if (npcConfig != null)
                {
                    if (npcConfig.NPCSpeakID != 0)
@@ -195,16 +195,16 @@
        void ContentAssignment()//内容赋值
        {
            NPCConfig Npc = Config.Instance.Get<NPCConfig>(_NpcID);
            NPCConfig Npc = NPCConfig.Get(_NpcID);
            _NpcName.text = Npc.charName;
            var config = Config.Instance.Get<TASKINFOConfig>(_AllMissionDict[_TaskId].Name);
            var config = TASKINFOConfig.Get(_AllMissionDict[_TaskId].Name);
            if (config == null)
            {
                DebugEx.LogError("任务表格配置错误");
                return;
            }
            _TextTaskName.text = config.show_writing;
            var taskInfoConfig = Config.Instance.Get<TASKINFOConfig>(StrConversa);
            var taskInfoConfig = TASKINFOConfig.Get(StrConversa);
            if (taskInfoConfig == null)
            {
                DebugEx.LogError("任务表格配置错误");
@@ -213,9 +213,9 @@
            if (taskmodel.BountyDic.ContainsKey(_TaskId) || taskmodel.FairyAuDic.ContainsKey(_TaskId))
            {
                string _taskInfoKey = string.Format("d_{0}_0_1", _NpcID);
                if (Config.Instance.Get<TASKINFOConfig>(_taskInfoKey) == null)
                if (TASKINFOConfig.Get(_taskInfoKey) == null)
                    return;
                TASKINFOConfig DefaultDialogContent = Config.Instance.Get<TASKINFOConfig>(_taskInfoKey);
                TASKINFOConfig DefaultDialogContent = TASKINFOConfig.Get(_taskInfoKey);
                _TextTaskDescription.text= DefaultDialogContent.show_writing;
            }
            else
@@ -225,7 +225,7 @@
         
            var rewardTaskInfoConfig = Config.Instance.Get<TASKINFOConfig>(_AllMissionDict[_TaskId].RewardList);
            var rewardTaskInfoConfig = TASKINFOConfig.Get(_AllMissionDict[_TaskId].RewardList);
            if (rewardTaskInfoConfig == null)
            {
                DebugEx.LogError("任务表格配置错误");
@@ -265,7 +265,7 @@
                }
            }
            int _TaskType = 0;
            _TaskType = int.Parse(Config.Instance.Get<FuncConfigConfig>("MissionType").Numerical1);
            _TaskType = int.Parse(FuncConfigConfig.Get("MissionType").Numerical1);
            _BtnRewards.gameObject.SetActive(true);