void OnTriggerExit2D(Collider2D col) { string tag = col.tag; colliderObject = (actual != tag) ? ColliderFactory(tag) : colliderObject; if (null != colliderObject) { colliderObject.StopColliding(col); actual = tag; } }