private void GetWaypointData() { currentWaypointTransform = hammerPath.pathWaypointTransforms[currentWaypointIndex]; currentWaypointDirectives = currentWaypointTransform.GetComponent <WayPointDirectives>(); currentWaypointRestingTime = currentWaypointDirectives.WaypointRestDuration; restingTimeCounter = currentWaypointRestingTime; }
void Start() { currentWaypointDirectives = currentWaypointTransform.GetComponent <WayPointDirectives>(); animationController = GetComponentInParent <MagnetHammer>().AnimationController; // MagnetHammerMachineAnimationController.AnimationTiming OnAnimationLockRelease = animationController.Mach_GetAnimationTimingEvent(); // OnAnimationLockRelease += UnblockWaitForAnimation; MagnetHammerMachineAnimationController.AnimationCatchupSubscription catchupSubscription = animationController.Mach_GetAnimationCatchupSubscription(); catchupSubscription.OnAnimationCaughtUp += UnblockWaitForAnimation; // print(OnAnimationLockRelease.ToString()); // print (OnAnimationLockRelease); TriggerAnimationsBasedOnWayPoint(); }