Exemple #1
0
 private void GetWaypointData()
 {
     currentWaypointTransform   = hammerPath.pathWaypointTransforms[currentWaypointIndex];
     currentWaypointDirectives  = currentWaypointTransform.GetComponent <WayPointDirectives>();
     currentWaypointRestingTime = currentWaypointDirectives.WaypointRestDuration;
     restingTimeCounter         = currentWaypointRestingTime;
 }
Exemple #2
0
 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();
 }