예제 #1
0
 private void WallClinging()
 {
     if (_movement.CurrentState == CharacterStates.MovementStates.WallClinging)
     {
         _platformer.SetForce(Vector2.zero);
         _platformer.GravityActive(false);
         if (_actJump != null)
         {
             _actJump.ResetNumberOfJumps();
         }
         //_platformer.transform.position = _gripTarget.transform.position + _gripTarget.GripOffset;
     }
 }
예제 #2
0
 protected virtual void Grip()
 {
     if (_movement.CurrentState == CharacterStates.MovementStates.Gripping)
     {
         _platformer.SetForce(Vector2.zero);
         _platformer.GravityActive(false);
         if (_actJump != null)
         {
             _actJump.ResetNumberOfJumps();
         }
         _platformer.transform.position = _gripTarget.transform.position + _gripTarget.GripOffset;
     }
 }