full playable game
This commit is contained in:
1 parent
afcd8761e6
commit
1869fa7584
56 files changed
+7581
-37
No files matched your search
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.Gameplay.Character.Stats
|
||||
{
|
||||
public class HealthBuff : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private int healthBuff = 50;
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (!other.CompareTag("Player")) return;
|
||||
var health = other.GetComponent<HealthSystem>();
|
||||
health?.Heal(healthBuff);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0c628fd85b24cb1ad9748bba030feaa
|
||||
timeCreated: 1771912003
|
||||
Reference in new issue
Block a user