void SendShowLog() { if (reporter != null) { reporter.doShow(); } }
void ToggleAdminPanel(TrinaxAdminPanel _aP) { if (Input.GetKeyDown(KeyCode.F12)) { StartCoroutine(_aP.DoSuccessResult(true)); _aP.gameObject.SetActive(!_aP.gameObject.activeSelf); HideDebugText(!_aP.gameObject.activeSelf); if (reporter == null) { return; } else { if (reporter.show) { reporter.show = !reporter.show; } } } if (Input.GetKeyDown(KeyCode.F10) && _aP.gameObject.activeSelf) { if (reporter == null) { return; } reporter.show = !reporter.show; if (reporter.show) { reporter.doShow(); } } }
void ToggleAdminPanel(TrinaxAdminPanel _aP) { foreach (char c in Input.inputString) { if ((c == cheat_code_adminPanel[typeIndex] && !_aP.gameObject.activeSelf) || (c == cheat_code_reporter[typeIndex] && !reporter.show)) { typeIndex++; typedStr += c; } else { typeIndex = 0; typedStr = ""; } } if (typeIndex == cheat_code_adminPanel.Length && !_aP.gameObject.activeSelf && typedStr == cheat_code_adminPanel) { typeIndex = 0; typedStr = ""; _aP.ShowResultOverlay(true); _aP.gameObject.SetActive(!_aP.gameObject.activeSelf); //if (reporter == null) return; //else //{ // if (reporter.show) // { // reporter.show = !reporter.show; // } //} } if (typeIndex == cheat_code_reporter.Length && !reporter.show && typedStr == cheat_code_reporter) { typeIndex = 0; typedStr = ""; if (reporter == null) { return; } reporter.show = !reporter.show; if (reporter.show) { reporter.doShow(); } } //if (Input.GetKeyDown(KeyCode.F9) /*&& _aP.gameObject.activeSelf*/) //{ // if (reporter == null) return; // reporter.show = !reporter.show; // if (reporter.show) // { // reporter.doShow(); // } //} }