private void Interactor_OnLanding(object sender, LandingEventArgs eventArgs) { if (eventArgs.Velocity.y >= landTriggerVelocity) { landMove.Issue(); } }
private void HandleLanding(ICanDetectGround detector, LandingEventArgs eventArgs) { if (eventArgs.lastLandingState != eventArgs.currentLandingState && eventArgs.currentLandingState == LandingState.OnGround) { _particles["Land_In_Ground"].Play(); } }
private void HandleLandingStateChange(ICanDetectGround detector, LandingEventArgs eventArgs) { if (eventArgs.currentLandingState == LandingState.OnGround && _animator.GetCurrentAnimation().name == BossFSMData.Anim.Combo2_3) { _mover.InterruptContantMove(); ShakeScreen.Instance.Shake(_combo2ShakeParams); } }
private void HandleLandingStateChanged(ICanDetectGround sender, LandingEventArgs eventArgs) { if (eventArgs.currentLandingState == LandingState.OnGround) { _currentAirAttack = 0; _animator.SetBool(PlayerFSMData.Stat.Airborne, false); _animator.SetBool(PlayerFSMData.Stat.Charge, false); _bulletTimeReady = false; _extraJump = false; _state._airborne = false; if (_animator.GetCurrentAnimation().name == PlayerFSMData.Anim.Dropping) { SetBlockInput(true); SetFrozen(true); } } else { _animator.SetBool(PlayerFSMData.Stat.Airborne, true); _state._airborne = true; } }
/// <summary> /// Called after a <see cref="API.Features.Player"/> lands. /// </summary> /// <param name="ev">The <see cref="LandingEventArgs"/> instance.</param> public static void OnLanding(LandingEventArgs ev) => Landing.InvokeSafely(ev);
private static void Airport_AirplaneLandedEvent(object sender, LandingEventArgs e) { Console.WriteLine($"Plane {e.Patent} landed."); }