Question by
Windliu · Jan 09, 2019 at 01:53 PM ·
triggercollider2dontriggerenter2d
one time Trigger and I get two OnTriggerEnter2Ds and two OnTriggerExit2Ds
Dear Sir : I make a 2D map and put event gameObject on it. My pawn get RigidBody2D (Kinematic) and BoxCollieder2D. The event gameObject have BoxCollider2D (IsTrigger) and I need this gameObject on the map always. My question is as below. 1. My pawn touch the gameObject and OnTriggerEnter2D works. 2. When pawn left the gameObject, OnTriggerExit2D works, OnTriggerEnter2D works again and OnTriggerExit2D again,
I double check this in 2D Roguelike tutorials and found same situation. Can I disable the second trigger ?
Thank you for the help.
Warm Regards;
Wind Liu
Comment