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

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

            _tracker.StartTracking(other);
        }