// Climb 시작 셋팅 함수 public void OnClimb() { _isClimbing = true; _climbObject = _climbObjectHit.GetComponent <ClimbObject>(); _rigidbody.gravityScale = 0; _jumpCount = 0; }
// Climb 종료, Climb 시작전 상태로 초기화 public void OffClimb() { _isClimbing = false; _climbObject = null; _rigidbody.gravityScale = _originalGravity; }