액션 및 인터랙션 시 장비를 착용할 수 있도록 함. 코드 개선 추가
This commit is contained in:
@@ -242,7 +242,7 @@ namespace Northbound
|
||||
/// <summary>
|
||||
/// 텔레포트 이펙트 재생 (모든 클라이언트)
|
||||
/// </summary>
|
||||
[ClientRpc]
|
||||
[Rpc(SendTo.ClientsAndHost)]
|
||||
private void PlayTeleportEffectClientRpc(Vector3 position)
|
||||
{
|
||||
if (teleportEffectPrefab == null) return;
|
||||
@@ -254,7 +254,7 @@ namespace Northbound
|
||||
/// <summary>
|
||||
/// 사운드 재생 (모든 클라이언트)
|
||||
/// </summary>
|
||||
[ClientRpc]
|
||||
[Rpc(SendTo.ClientsAndHost)]
|
||||
private void PlaySoundClientRpc(bool isTeleport)
|
||||
{
|
||||
if (_audioSource == null) return;
|
||||
@@ -269,7 +269,7 @@ namespace Northbound
|
||||
/// <summary>
|
||||
/// 허용 팀 변경 (서버에서 호출)
|
||||
/// </summary>
|
||||
[ServerRpc(RequireOwnership = false)]
|
||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Everyone)]
|
||||
public void ChangeAllowedTeamServerRpc(TeamType newTeam)
|
||||
{
|
||||
allowedTeam = newTeam;
|
||||
@@ -281,7 +281,7 @@ namespace Northbound
|
||||
/// <summary>
|
||||
/// 비주얼 업데이트 (모든 클라이언트)
|
||||
/// </summary>
|
||||
[ClientRpc]
|
||||
[Rpc(SendTo.ClientsAndHost)]
|
||||
private void UpdateVisualClientRpc(TeamType team)
|
||||
{
|
||||
allowedTeam = team;
|
||||
@@ -376,11 +376,13 @@ namespace Northbound
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
public override void OnDestroy()
|
||||
{
|
||||
// 정리
|
||||
_lastTeleportTime.Clear();
|
||||
_triggerStates.Clear();
|
||||
|
||||
base.OnDestroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user