コード例 #1
0
    void TransitionToState(CirGUI gui)
    {
        currentGUIState = gui;

        switch (currentGUIState)
        {
        case CirGUI.Normal:
            Cursor.visible   = false;
            Cursor.lockState = CursorLockMode.Locked;
            break;

        case CirGUI.CircuitG:
            Cursor.visible   = true;
            Cursor.lockState = CursorLockMode.None;
            break;
        }
    }
コード例 #2
0
    void TransitionToState(CirGUI gui)
    {
        currentGUIState = gui;

        switch (currentGUIState)
        {

        case CirGUI.Normal:
            Cursor.visible = false;
            Cursor.lockState = CursorLockMode.Locked;
            break;
        case CirGUI.CircuitG:
            Cursor.visible = true;
            Cursor.lockState = CursorLockMode.None;
            break;

        }
    }