Files
No-Time-To-Rest/Assets/Scripts/Enemy.cs
T
2025-03-08 22:41:34 +03:00

12 lines
226 B
C#

using UnityEditor.Embree;
using UnityEngine;
public class Enemy : MonoBehaviour
{
public float hp = 100f;
public void DealDamage(float damage) {
hp -= damage;
if (hp <= 0) Destroy(gameObject);
}
}