예제 #1
0
    void OnMouseOver()
    {
        if (Input.GetMouseButtonDown(0))
        {
            switch (onClickAction)
            {
            case MainMenuAction.Play:
                Signals.EmitPlayRequested();
                break;

            case MainMenuAction.Quit:
                Signals.EmitQuitRequested();
                break;
            }
        }
    }