PlayerManager.Heal()

public static float Player.PlayerManager.Heal(int amount)

CyberPsychosis    >    Player    >    PlayerManager    >    Heal

Summary

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);
    }
}