Question by
Beanboyblue · Oct 14, 2015 at 09:58 PM ·
2dtrigger2d-physicscodepageexit
Need help with OnTriggerExit2D
using UnityEngine; using System.Collections; public class DestroyByBoundary : MonoBehaviour { void OnTriggerExit2D(Collider other) { Destroy(other.gameObject); } }
I have this and all, but when the "bolt" in this case hits the 2dboxcollider nothing happens. I really don't know whats wrong, any idea?
Comment