コード例 #1
0
        public override void OnStateEnter()
        {
            CheckDirection();
            SetCorrectAirborneAnimationState();

            GravityEnabled?.Invoke(true);
        }
コード例 #2
0
        private void UnlockPlayer()
        {
            GravityEnabled?.Invoke(true);

            isLocked = false;
//            Debug.Log("unlock fired");
            SetIsKinematic?.Invoke(false);
            ratRenderer.enabled = true;
            playerInput.enabled = true;
        }
コード例 #3
0
        public override void OnStateEnter()
        {
            OnSoundPlayOneShot?.Invoke(audioLib.HingeSqueek);

            LockRotation?.Invoke(false);

            ratBrain.SetAnimationState(ratBrain.AvailableAnimationStates[typeof(AnimationStates.Tripping)]);

            GravityEnabled?.Invoke(true);
        }
コード例 #4
0
 public override void OnStateEnter()
 {
     ratBrain.SetAnimationState(ratBrain.AvailableAnimationStates[typeof(Idle)]);
     GravityEnabled?.Invoke(false);
 }