Added things

This commit is contained in:
2022-05-13 13:29:38 +07:00
parent 85518c4f3f
commit abf262095f
589 changed files with 851744 additions and 0 deletions

View File

@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Target : MonoBehaviour
{
// Start is called before the first frame update
public float health = 50f;
public void TakeDamage(float amount)
{
health -= amount;
if (health <= 0f)
{
Die();
}
}
void Die()
{
Destroy(gameObject);
}
}