init
This commit is contained in:
commit
862afc9b7a
478 changed files with 197737 additions and 0 deletions
11
Assets/Scripts/PlayerHealth.cs
Normal file
11
Assets/Scripts/PlayerHealth.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue