2025-05-15 14:33:59 +09:00

23 lines
472 B
C#

using UnityEngine;
public class PlayerStateDead : IPlayerState
{
private PlayerController _playerController;
public void Enter(PlayerController playerController)
{
_playerController = playerController;
_playerController.PlayerAnimator.SetBool("Dead", true);
}
public void Update()
{
}
public void Exit()
{
_playerController.PlayerAnimator.SetBool("Dead", false);
_playerController = null;
}
}