Example #1
0
    private void OnTriggerEnter(Collider other)
    {
        Debug.Log("Pastel Choca = " + other.name);

        IDamage damage = other.GetComponent <IDamage>();

        if (damage != null)
        {
            damage.DoDamage(ShootByPlayer);
        }
    }