//If the ring is placable on the pin att it to pin in the rule manager otherwhise void OnTriggerEnter2D(Collider2D collision) { int ringSize = collision.GetComponentInParent <RingScript>().ringSize; if (ruleManager.IsRingPlacable(ringSize, pin)) { ruleManager.AddRingToPin(ringSize, pin); } else if (RingPlacementInitialized()) { collision.GetComponentInParent <RingScript>().RingUnmovable(); unplaceableRing = collision.gameObject.transform.parent.gameObject; } }