feat: 플레이어 사망 및 리스폰 시스템 구현
- isDead 네트워크 변수 추가로 사망 상태 동기화 - 사망 시 이동/스킬 비활성화 및 사망 애니메이션 재생 - Respawn() 메서드로 체력/마나 회복 및 컴포넌트 재활성화 - 스킬 입력에서 사망 상태 체크 추가 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -107,6 +107,10 @@ namespace Colosseum.Player
|
||||
return;
|
||||
}
|
||||
|
||||
// 사망 상태 체크
|
||||
if (networkController != null && networkController.IsDead)
|
||||
return;
|
||||
|
||||
// 로컬 체크 (빠른 피드백용)
|
||||
if (skillController.IsExecutingSkill)
|
||||
{
|
||||
@@ -145,6 +149,10 @@ namespace Colosseum.Player
|
||||
if (skill == null) return;
|
||||
|
||||
// 서버에서 다시 검증
|
||||
// 사망 상태 체크
|
||||
if (networkController != null && networkController.IsDead)
|
||||
return;
|
||||
|
||||
if (skillController.IsExecutingSkill || skillController.IsOnCooldown(skill))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user