add: Level and Game controllers base
update: scripts are now in folders
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Enemy : MonoBehaviour
|
||||
{
|
||||
public float hp = 100f;
|
||||
|
||||
public void DealDamage(float damage) {
|
||||
hp -= damage;
|
||||
if (hp <= 0) Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46894d927b8e6654487b876457ca8974
|
||||
Reference in New Issue
Block a user