모든 네트워크 오브젝트의 소유권을 서버가 갖도록 함
Distributable -> None 관련 사이드 이펙트로 인한 버그 수정
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user