|
|
|
@ -178,6 +178,7 @@ public class TrappedMoveFree : MonoBehaviour
|
|
|
|
|
|
|
|
|
|
set |
|
|
|
|
{ |
|
|
|
|
Debug.Log("<color=#00aa00ff>" + "dssfsda" + "</color>"); |
|
|
|
|
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); |
|
|
|
|