GameOverUI.HandleGuiInputOnClick C# (CSharp) Method

HandleGuiInputOnClick() public method

public HandleGuiInputOnClick ( object sender, ButtonName, e ) : void
sender object
e ButtonName,
return void
    void HandleGuiInputOnClick(object sender, ButtonName e)
    {
        switch(e.name){
            case ENTER:
                SoundManager.SOUNDS.playSound(SoundManager.UI_CLICK,MasterController.UI_CAMERA_ALT);
                _highScore.hS().set_name(_hsi.initials());
                _highScore.saveScores();
                _state = State.DISPLAY;
                break;
            case LEFT:
                _hsi.swipe(SwipeDirection.Left);
                break;
            case RIGHT:
                _hsi.swipe(SwipeDirection.Right);
                break;
            case UP1:
            case UP2:
            case UP3:
                _hsi.swipe(SwipeDirection.Up);
                guiInput.SetGUINameProperty(INITIALS,_hsi.initials());
                break;
            case DOWN1:
            case DOWN2:
            case DOWN3:
                _hsi.swipe(SwipeDirection.Down);
                guiInput.SetGUINameProperty(INITIALS,_hsi.initials());
                break;
            default:
                break;
        }
    }