From aecda02d8b985a82126e7557315430f204e7c2b4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-KFV16CV\\cyt" <2268162076@qq.com> Date: Tue, 9 Mar 2021 10:22:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A2=AB=E5=9B=B0=E4=BA=BA=E5=91=98=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=A2=AB=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/Disasters/Wound_Trapped/TrappedMoveFree.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Common/Disasters/Wound_Trapped/TrappedMoveFree.cs b/Assets/Scripts/Common/Disasters/Wound_Trapped/TrappedMoveFree.cs index 268b49c..c06ff94 100644 --- a/Assets/Scripts/Common/Disasters/Wound_Trapped/TrappedMoveFree.cs +++ b/Assets/Scripts/Common/Disasters/Wound_Trapped/TrappedMoveFree.cs @@ -178,6 +178,7 @@ public class TrappedMoveFree : MonoBehaviour set { + Debug.Log("" + "dssfsda" + ""); targetPosition = value; } } @@ -185,7 +186,7 @@ public class TrappedMoveFree : MonoBehaviour public void OnEnable() { //MessageDispatcher.AddListener("SetGuidpathIndex", AddGuidIndex); - MessageDispatcher.AddListener("MOVE_MAN_COMMAND", MoveExcute); + // MessageDispatcher.AddListener("MOVE_MAN_COMMAND", MoveExcute); MessageDispatcher.AddListener("GUIDANCE_MAN_COMMAND", GuidanceTrapped); MessageDispatcher.AddListener("FRISTAID_MAN_COMMAND", FristAidTrapped); MessageDispatcher.AddListener("TRAPPED_MOVE_FOLLOW_GUIDE_POINT_COMMAND", MoveFollowGuidPoint); @@ -202,7 +203,7 @@ public class TrappedMoveFree : MonoBehaviour public void OnDestroy() { // MessageDispatcher.RemoveListener("SetGuidpathIndex", AddGuidIndex); - MessageDispatcher.RemoveListener("MOVE_MAN_COMMAND", MoveExcute); + //MessageDispatcher.RemoveListener("MOVE_MAN_COMMAND", MoveExcute); MessageDispatcher.RemoveListener("GUIDANCE_MAN_COMMAND", GuidanceTrapped); MessageDispatcher.RemoveListener("FRISTAID_MAN_COMMAND", FristAidTrapped); MessageDispatcher.RemoveListener("TRAPPED_MOVE_FOLLOW_GUIDE_POINT_COMMAND", MoveFollowGuidPoint); @@ -218,7 +219,7 @@ public class TrappedMoveFree : MonoBehaviour public void OnDisable() { //MessageDispatcher.RemoveListener("SetGuidpathIndex", AddGuidIndex); - MessageDispatcher.RemoveListener("MOVE_MAN_COMMAND", MoveExcute); + // MessageDispatcher.RemoveListener("MOVE_MAN_COMMAND", MoveExcute); MessageDispatcher.RemoveListener("GUIDANCE_MAN_COMMAND", GuidanceTrapped); MessageDispatcher.RemoveListener("FRISTAID_MAN_COMMAND", FristAidTrapped); MessageDispatcher.RemoveListener("TRAPPED_MOVE_FOLLOW_GUIDE_POINT_COMMAND", MoveFollowGuidPoint);