Enemy의 사망 애니메이션 로직

네트워크 상에서의 동작 확인 완료
This commit is contained in:
2026-02-16 00:13:25 +09:00
parent 17457b2e7e
commit 047c115f95
6 changed files with 89 additions and 6 deletions

View File

@@ -153,7 +153,10 @@ using UnityEngine;
visibility.updateInterval = 0.2f;
}
enemy.GetComponent<NetworkObject>().SpawnWithOwnership(NetworkManager.Singleton.LocalClientId);
var netObj = enemy.GetComponent<NetworkObject>();
netObj.Spawn(true);
Debug.Log($"<color=cyan>[EnemyPortal] {enemy.name} 스폰됨 - OwnerClientId: {netObj.OwnerClientId}, IsServer: {IsServer}</color>");
}
private void IncreaseCost()