viewers access
public static float Player.PlayerManager.Heal(int amount)
CyberPsychosis > Player > PlayerManager > Heal
Heals the player, increases the health value, clamped between 0 and the max health
using UnityEngine;
using Player;
public class HealTrigger : MonoBehaviour
{
public int healAmount = 30;
void OnTriggerEnter(Collider other)
{
if(!other.CompareTag("Player"))
return;
PlayerManager.Heal(healAmount);
}
}