2026-05-19 무기추가
진행중인 사항 - InputManager + .inputactions: WeaponSlot1/2/3 액션 추가, 키 1/2/3 매핑 PlayerController 통합: Player에 PlayerWeaponInventory 컴포넌트 자동 부착 OnWeaponChanged 구독 → idle/walk State 이름 동적 교체 OnPunchInput 분기: 무장 시 weapon.AttackRootNode 사용 WeaponSlot 입력 핸들러 3개 추가 (EquipUnarmed / EquipSlot(0) / EquipSlot(1))
This commit is contained in:
@@ -1372,13 +1372,26 @@ private void OnDrawGizmos()
|
||||
|
||||
float t = Mathf.Clamp01(since / _hitGizmoFadeDuration);
|
||||
float alpha = Mathf.Lerp(0.85f, 0f, t);
|
||||
float radius = _lastHitData.Radius;
|
||||
|
||||
Gizmos.color = new Color(1f, 0.2f, 0.2f, alpha * 0.35f);
|
||||
Gizmos.DrawSphere(_lastHitCenter, radius);
|
||||
Color fillColor = new Color(1f, 0.2f, 0.2f, alpha * 0.35f);
|
||||
Color wireColor = new Color(1f, 0f, 0f, alpha);
|
||||
|
||||
Gizmos.color = new Color(1f, 0f, 0f, alpha);
|
||||
Gizmos.DrawWireSphere(_lastHitCenter, radius);
|
||||
if (_lastHitData.Shape == HitShape.Box)
|
||||
{
|
||||
Vector3 size = new Vector3(_lastHitData.HitSize.x, _lastHitData.HitSize.y, 0.01f);
|
||||
Gizmos.color = fillColor;
|
||||
Gizmos.DrawCube(_lastHitCenter, size);
|
||||
Gizmos.color = wireColor;
|
||||
Gizmos.DrawWireCube(_lastHitCenter, size);
|
||||
}
|
||||
else
|
||||
{
|
||||
float radius = _lastHitData.Radius;
|
||||
Gizmos.color = fillColor;
|
||||
Gizmos.DrawSphere(_lastHitCenter, radius);
|
||||
Gizmos.color = wireColor;
|
||||
Gizmos.DrawWireSphere(_lastHitCenter, radius);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDrawGizmosSelected()
|
||||
|
||||
Reference in New Issue
Block a user