CapersProject/Assets/02.Scripts/Interface/IDamagable.cs
Nam Tae Gun 0cdf1aa3a8 전투플레이어 로직 전체 수정
+ 이벤트 구독 방식에서 인터페이스 형식으로 변경
2024-06-17 06:29:06 +09:00

16 lines
439 B
C#

namespace BlueWater.Interfaces
{
public interface IDamageable
{
int MaxHealthPoint { get; }
int CurrentHealthPoint { get; }
bool IsInvincible { get; }
float InvincibilityDuration { get; }
void SetCurrentHealthPoint(int changedHealthPoint);
bool CanDamage();
void TakeDamage(int damageAmount);
void TryTakeDamage(int damageAmount);
void Die();
}
}