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