void select() { resetMouse(); setSelected(counter); menuScript = selected.GetComponent <GameOverMenuEffects>(); menuScript.setRowNumber(1); selected.GetComponent <OTSprite>().size = size + new Vector2(100, 100);; audio.PlayOneShot(selectSound); }
void resetMouse() { if (mouse) { for (int i = 0; i < 3; i++) { setSelected(i); menuScript = selected.GetComponent <GameOverMenuEffects>(); menuScript.setRowNumber(0); selected.GetComponent <OTSprite>().size = size; } mouse = false; } }