void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { switch (onClickAction) { case MainMenuAction.Play: Signals.EmitPlayRequested(); break; case MainMenuAction.Quit: Signals.EmitQuitRequested(); break; } } }