void FixedUpdate() { if (PointOfInterest == null) { if (FollowCam.S.pointOfInterest != null) { if (FollowCam.S.pointOfInterest.tag == "Projectile") { PointOfInterest = FollowCam.S.pointOfInterest; } else { return; } } else { return; } } AddPoint(); if (PointOfInterest.GetComponent <Rigidbody>().IsSleeping()) { PointOfInterest = null; } }
void FindEndPoint() { patronAgent.destination = endPoint.GetComponent <Transform>().position; PleaseGodKillme = true; curPoint.hasPatron = false; }