|
|
|
@ -321,6 +321,19 @@ public class FireManSkillPanelController : MonoBehaviour
|
|
|
|
|
if (value) |
|
|
|
|
{ |
|
|
|
|
InputManager.cloneObjType = CloneObjType.None; |
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.Usher; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName + "-<color=red> 引导员 </color>"; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.None; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -361,6 +374,19 @@ public class FireManSkillPanelController : MonoBehaviour
|
|
|
|
|
if (value) |
|
|
|
|
{ |
|
|
|
|
InputManager.cloneObjType = CloneObjType.None; |
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.WaterGuiding; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName + "<color=red> 水源引导 </color>"; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.None; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -369,6 +395,19 @@ public class FireManSkillPanelController : MonoBehaviour
|
|
|
|
|
if (value) |
|
|
|
|
{ |
|
|
|
|
InputManager.cloneObjType = CloneObjType.None; |
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.GuardAgainst; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName + "-<color=red> 警戒 </color>"; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.None; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -377,6 +416,20 @@ public class FireManSkillPanelController : MonoBehaviour
|
|
|
|
|
if (value) |
|
|
|
|
{ |
|
|
|
|
InputManager.cloneObjType = CloneObjType.None; |
|
|
|
|
|
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.SafetyOfficer; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName + "-<color=red> 安全员 </color>"; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.None; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -404,6 +457,21 @@ public class FireManSkillPanelController : MonoBehaviour
|
|
|
|
|
if (value) |
|
|
|
|
{ |
|
|
|
|
InputManager.cloneObjType = CloneObjType.None; |
|
|
|
|
|
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.TagSearchRoom; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName + "-<color=red> 侦察 </color>"; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
SelectFireMan.GetComponent<FireManControl>().workType = FireManSkills.None; |
|
|
|
|
ChangeUINameCmdArgs arg = new ChangeUINameCmdArgs(); |
|
|
|
|
arg.gameObjID = SelectFireMan.GetComponent<CloneGameObjInfo>().gameObjID; |
|
|
|
|
arg.Value = SelectFireMan.GetComponent<CloneGameObjInfo>().FullName; |
|
|
|
|
MessageDispatcher.SendMessage("CHANGE_HEAD_NAME", arg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|