public override void OnStateEnter() { CheckDirection(); SetCorrectAirborneAnimationState(); GravityEnabled?.Invoke(true); }
private void UnlockPlayer() { GravityEnabled?.Invoke(true); isLocked = false; // Debug.Log("unlock fired"); SetIsKinematic?.Invoke(false); ratRenderer.enabled = true; playerInput.enabled = true; }
public override void OnStateEnter() { OnSoundPlayOneShot?.Invoke(audioLib.HingeSqueek); LockRotation?.Invoke(false); ratBrain.SetAnimationState(ratBrain.AvailableAnimationStates[typeof(AnimationStates.Tripping)]); GravityEnabled?.Invoke(true); }
public override void OnStateEnter() { ratBrain.SetAnimationState(ratBrain.AvailableAnimationStates[typeof(Idle)]); GravityEnabled?.Invoke(false); }