void OnTriggerExit2D(Collider2D collider) { foreach (KeyValuePair <Edge, MapNode> item in chunkScript.mapNode.Neighbors) { Swapper neighborSwapper = item.Value.chunkScript.GetComponentInChildren <Swapper>(); neighborSwapper.TrySwapInto(collider.attachedRigidbody.gameObject); } }