Example #1
0
 /// <summary>
 /// 展示任务小面板
 /// </summary>
 /// <param name="taskSystem"></param>
 public void Show(TaskSystem taskSystem)
 {
     nameTxt.text = taskSystem.sy.currentTask.name;
     showUI.ShowNeeds(progress, taskSystem);
     //*****************************************测试
     //Debug.Log(taskSystem.sy.currentTask.tp.taskComplete["情报贩子"]);
 }
Example #2
0
 /// <summary>
 /// 任务面板的UI层信息显示
 /// </summary>
 /// <param name="taskSystem"></param>
 public void SetUI(TaskSystem taskSystem)
 {
     rewards.text = "";
     nameTxt.text = taskSystem.sy.currentTask.name;
     //Debug.Log(taskSystem.sy.currentTask.name);
     description.text = taskSystem.sy.currentTask.description;
     rewards.text    += "金钱: " + taskSystem.sy.currentTask.qr.coinCounts + "\n";
     rewards.text    += "经验: " + taskSystem.sy.currentTask.qr.experience + "\n";
     rewards.text    += "物品: ";
     foreach (var item in taskSystem.sy.currentTask.qr.Equip)
     {
         rewards.text += item.Key + " ";
     }
     //展示任务进度UI
     showUI.ShowNeeds(need, taskSystem);
     //为按钮添加点击事件
     SetButton(taskSystem);
 }