Exemple #1
0
 public void OnExcuteTask(Task task)  //执行某个任务
 {
     currentTask = task;
     if (task.Progress == TaskProgress.UnAccept)
     {
         //还没有开始任务,导航到npc接受任务
         move.SetDestination(NpcManager.instance.GetNpcById(task.NpcId).transform.position);
     }
     else if (task.Progress == TaskProgress.Accept)
     {
         move.SetDestination(NpcManager.instance.transcript.transform.position);
     }
 }
Exemple #2
0
 //执行某个任务
 public void OnExcuteMission(Mission mission)
 {
     currentMission = mission;
     if (mission.MissionPlan == MissionPlan.NotStart)
     {
         //任务状态是未开始,导航到NPC接受任务
         playerAutoMove.SetDestination(NPCManager._instance.GetNpcById(mission.NpcId).transform.position);
     }
     else if (mission.MissionPlan == MissionPlan.Accept)
     {
         //任务已经接受,导航到副本入口的位置
         playerAutoMove.SetDestination(NPCManager._instance.fbEnter.transform.position);
     }
 }