コード例 #1
0
    void Update()
    {
#if PLATFORM_STANDALONE_OSX
        KeyCode controlKey = KeyCode.LeftCommand;
#elif PLATFORM_STANDALONE
        KeyCode controlKey = KeyCode.LeftControl;
#endif
        bool controlPress   = Input.GetKey(controlKey);
        bool leftShiftPress = Input.GetKey(KeyCode.LeftShift);

        if (controlPress)
        {
            if (Input.GetKeyDown(KeyCode.S))
            {
                SaveLevel();
            }
        }

        if (!PicSelectPanel.IsOpen && UIManager.Instance.GetPeekUIForm() == null)
        {
            CardSelectPanel.CardSelectPanelUpdate();
        }
    }
コード例 #2
0
    void Update()
    {
#if PLATFORM_STANDALONE_OSX
        KeyCode controlKey = KeyCode.LeftCommand;
#elif PLATFORM_STANDALONE
        KeyCode controlKey = KeyCode.LeftControl;
#endif

        bool controlPress = Input.GetKey(controlKey);

        if (controlPress)
        {
            if (Input.GetKeyDown(KeyCode.S))
            {
                SaveStory();
            }
        }

        if (CardSelectPanel.gameObject.activeInHierarchy)
        {
            CardSelectPanel.CardSelectPanelUpdate();
        }
    }