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(); } }
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(); } }