Exemple #1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Player")
        {
            //other.gameObject.GetComponent<Player_Health>().GainHP(true);
            //other.gameObject.GetComponent<LightMatchScript>().GainMatch();

            playerHP.GainHP(true);
            playerMatch.GainMatch();
        }
    }