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

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

@@ -110,8 +110,16 @@ namespace Northbound
{
return;
}
networkObject.SpawnAsPlayerObject(clientId);
// 서버 소유권으로 스폰
networkObject.SpawnWithOwnership(NetworkManager.ServerClientId);
// 플레이어 컨트롤러 초기화
var playerController = playerObject.GetComponent<NetworkPlayerController>();
if (playerController != null)
{
playerController.Initialize(clientId);
}
}
private void ApprovalCheck(