void ShowObject(GameObject toShow) { WallScript block = null; if (toShow != null) { block = toShow.GetComponent <WallScript>(); } if (block != null) { block.Show(); } }