액션 및 인터랙션 시 장비를 착용할 수 있도록 함. 코드 개선 추가
This commit is contained in:
@@ -34,10 +34,13 @@ namespace Northbound
|
||||
private Animator _animator;
|
||||
private EquipmentSocket _equipmentSocket;
|
||||
|
||||
private InteractionEquipmentData _pendingEquipmentData;
|
||||
private EquipmentData _pendingEquipmentData;
|
||||
private string _currentEquipmentSocket;
|
||||
private bool _isInteracting = false;
|
||||
|
||||
// 다른 컴포넌트가 이동 차단 여부를 확인할 수 있도록 public 프로퍼티 제공
|
||||
public bool IsInteracting => _isInteracting;
|
||||
|
||||
public override void OnNetworkSpawn()
|
||||
{
|
||||
if (!IsOwner) return;
|
||||
@@ -243,14 +246,12 @@ namespace Northbound
|
||||
GUI.Label(new Rect(Screen.width / 2 - 200, Screen.height - 100, 400, 50), prompt, style);
|
||||
}
|
||||
|
||||
override public void OnDestroy()
|
||||
public override void OnDestroy()
|
||||
{
|
||||
if (_inputActions != null)
|
||||
{
|
||||
_inputActions.Dispose();
|
||||
}
|
||||
|
||||
base.OnDestroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user