private void OnTriggerEnter(Collider other) { Debug.Log("Pastel Choca = " + other.name); IDamage damage = other.GetComponent <IDamage>(); if (damage != null) { damage.DoDamage(ShootByPlayer); } }