Train-of-Thought/Assets/Scripts/PlayerHealth.cs
Gerard Gascón 862afc9b7a init
2025-04-24 16:56:52 +02:00

11 lines
260 B
C#

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<PlayerStats>().Die();
}
}