Beispiel #1
0
        public void OnTriggerExit2D(Collider2D collision)
        {
            var other = collision.gameObject.GetComponent <MergeBehavior>();

            if (other == null)
            {
                return;
            }
            if (other.GetComponent <PayloadBehavior>().Type != _type)
            {
                return;
            }

            _tracker.StopTracking(other);
        }