하트 시스템, 2d 버튼 에셋 추가
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Author: ariel oliveira [o.arielg@gmail.com]
|
||||
*/
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
public class HealthBarHUDTester : MonoBehaviour
|
||||
{
|
||||
public void AddHealth()
|
||||
{
|
||||
PlayerStats.Instance.AddHealth();
|
||||
}
|
||||
|
||||
public void Heal(float health)
|
||||
{
|
||||
PlayerStats.Instance.Heal(health);
|
||||
}
|
||||
|
||||
public void Hurt(float dmg)
|
||||
{
|
||||
PlayerStats.Instance.TakeDamage(dmg);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user