public Component GetComponent(string type){} public Component GetComponentInChildren(Type t){}
/// <summary> /// Called when the block swap fails due to specified reason. /// </summary> /// <param name="block">Second block. First block is pulled from memory</param> private void BlockSelectionFail(Component block) { block.GetComponent<Block>().Selected = false; _swap.GridBlocks[_blockMemoryInt].GetComponent<Block>().Selected = false; block.GetComponent<Block>().AudioFail(); _blockMemoryInt = -1; BlockSelectedCount = 0; }