Ejemplo n.º 1
0
    private void OnCollisionEnter(Collision collision)
    {
        if (collision.collider.tag == "Enemy") // If enemy hits player
        {
            game_Manager.HealthSystem(this.gameObject);
        }

        if (collision.collider.tag == "Bomb_Foot" && transform.tag != "Player") // If kickbomb hits enemy and isn't player
        {
            game_Manager.HealthSystem(this.gameObject);
        }
    }