모든 네트워크 오브젝트의 소유권을 서버가 갖도록 함

Distributable -> None
관련 사이드 이펙트로 인한 버그 수정
This commit is contained in:
2026-02-18 02:18:42 +09:00
parent da8c87d082
commit 4ffbbb0aff
10 changed files with 388 additions and 129 deletions

View File

@@ -104,10 +104,10 @@ namespace Northbound
if (playerInteraction == null)
return false;
var networkObject = playerInteraction.GetComponent<Unity.Netcode.NetworkObject>();
if (networkObject != null)
var networkPlayerController = playerInteraction.GetComponent<NetworkPlayerController>();
if (networkPlayerController != null)
{
return networkObject.IsOwner;
return networkPlayerController.IsLocalPlayer;
}
return false;
}