사망 시 이동, 액션, 인터랙션 금지
This commit is contained in:
@@ -341,6 +341,12 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
[ClientRpc]
|
||||
private void HidePlayerClientRpc()
|
||||
{
|
||||
// 로컬 플레이어만 입력 비활성화
|
||||
if (IsLocalPlayer && _inputActions != null)
|
||||
{
|
||||
_inputActions.Disable();
|
||||
}
|
||||
|
||||
// CharacterController 비활성화 (이동 및 충돌 방지)
|
||||
if (_controller != null)
|
||||
{
|
||||
@@ -361,6 +367,12 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
[ClientRpc]
|
||||
private void ShowPlayerClientRpc()
|
||||
{
|
||||
// 로컬 플레이어만 입력 활성화
|
||||
if (IsLocalPlayer && _inputActions != null)
|
||||
{
|
||||
_inputActions.Enable();
|
||||
}
|
||||
|
||||
// CharacterController 활성화
|
||||
if (_controller != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user