player_polishing #7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "player_polishing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -11,3 +14,3 @@
private RestaurantPlayerDataSo _playerData;
private RestaurantPlayerDataSo _playerDataSo;
전처리 지시 필요
@ -53,2 +60,4 @@
Move();
}
if (_playerDataSo.IsDrawLineDebug)
전처리 필요
@ -64,3 +75,4 @@
_playerDataSo.DashActionReference.action.performed -= OnDash;
}
}
#if UNITY_EDITOR 등의 전처리 지시 필요
디버그 코드 들어간 모든 부분에 처리
@ -94,0 +198,4 @@
: _boxCollider.bounds.size.z;
int layerMask = ~_playerDataSo.IgnoreSlidingLayerMask;
if (Physics.BoxCast(origin, halfExtents * 0.95f, inputDirection, out RaycastHit hit, rotation, distance, layerMask))
매직넘버 제거하고 이름을 붙인 지역변수나 필드로 수정
@ -94,0 +205,4 @@
float dot = Vector3.Dot(inputDirection.normalized, hit.normal);
float slideFactor = Mathf.Pow(1f - Mathf.Abs(dot), _playerDataSo.SlidingThreshold);
if (slideFactor < 0.05f) return Vector3.zero;
매직넘버 제거하고 파라미터화 혹은 프라이빗 필드, 혹은 제대로된 이름이 붙은 지역변수로 변경할것.