示例#1
0
    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");
            }
        }
    }
示例#2
0
 void HealSkill()
 {
     netPlayerHealth.TakeHealth(healthAmount);
 }