public void UnblockButtons(TitleMenuButton except) { clicked = Array.IndexOf(buttons, except); offset = 0; block = false; InvokeRepeating("InvokeBlock", 0.05f, 0.05f); if (parentButton != null) { parentButton.block = false; } }
public void BlockButtons(TitleMenuButton except) { clicked = Array.IndexOf(buttons, except); offset = 0; block = true; InvokeRepeating("InvokeBlock", 0.1f, 0.1f); if ((parentButton != null) && (parentGroup != null)) { parentButton.block = true; } }