멀티플레이어 지원
이동, 건설, 인터랙션, 공격 등
This commit is contained in:
13
Assets/Scripts/OwnerNetworkAnimator.cs
Normal file
13
Assets/Scripts/OwnerNetworkAnimator.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Unity.Netcode.Components;
|
||||
using UnityEngine;
|
||||
|
||||
// 이 스크립트를 파일로 저장하세요.
|
||||
[DisallowMultipleComponent]
|
||||
public class OwnerNetworkAnimator : NetworkAnimator
|
||||
{
|
||||
// 이동 권한이 Owner에게 있으므로, 애니메이션 권한도 Owner가 갖도록 설정합니다.
|
||||
protected override bool OnIsServerAuthoritative()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user