add: pistol weapon and enemy

This commit is contained in:
KOSMOGOR
2025-03-08 22:41:34 +03:00
parent 7d6cef4989
commit 17f3448f6c
14 changed files with 542 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
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);
}
}