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; } }
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; } }