void OnTriggerEnter(Collider other) { if (other.transform.tag == "Player") { NetPlayerHealth player = other.transform.GetComponent <NetPlayerHealth>(); if (player != null) { player.TakeHealth(value); Debug.LogWarning("PLAYER CURADO: " + value + "HP"); } } }
void HealSkill() { netPlayerHealth.TakeHealth(healthAmount); }