void Awake() { instance = this; TINU_AppButton.Toggle += ToggleGUI; GameEvents.onHideUI.Add(onHideUI); GameEvents.onShowUI.Add(onShowUI); }
void CheckControlKeys() { if (Input.GetKeyDown(KeyCode.KeypadDivide)) { if (Input.GetKey(KeyCode.RightControl)) { TINU_ConfigWindow.HideGUI(); if (disableAll) { disableAll = false; disableMode[(int)mode] = false; } else { disableMode[(int)mode] = !disableMode[(int)mode]; } } else { TINU_ConfigWindow.ToggleGUI(); } } }