void OnTriggerExit2D(Collider2D collider) { if (collider.IsBlock ()) { var block = collider.GetComponent<Block>(); m_parentBlock.RemoveNeighbors(block); } }