using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerHealth : hasHP { public override void die() { Debug.Log("player die"); this.curHP = 1; GetComponent().Die(); } }