Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using MalbersAnimations.Controller;
- public class CheckMissingWaypoints : MonoBehaviour
- {
- [ContextMenu("Check")]
- void Check()
- {
- var waypoints = GameObject.FindObjectsOfType<MWayPoint>();
- foreach (var waypoint in waypoints)
- {
- foreach (var target in waypoint.NextTargets)
- {
- if (target == null)
- {
- Debug.Log($"waypoint : {waypoint}", waypoint);
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement