private void OnGUI() { GUI.contentColor = Color.red; GUI.Label(_attentionLabelRect, AttentionText); GUI.contentColor = Color.white; GUI.contentColor = Color.white; if (GUI.Button(_startButtonRect, "Create instance")) { CreateInstance(); } if (GUI.Button(_stopButtonRect, "Destroy instance")) { DestroyInstance(); } if (HintTextOn) { GUI.Label(_hintRect, HintText); } GoBack.Button(); }
private void OnGUI() { GUI.contentColor = Color.red; GUI.Label(_attentionLabelRect, AttentionText); GUI.contentColor = Color.white; GUI.Label(_noteRect, Note); GUI.Label(_resultLabelRect, _resultText); if (GUI.Button(_startButtonRect, "Start coroutine")) { StartTest(); } if (GUI.Button(_stopButtonRect, "Stop coroutine")) { StopTest(); } if (_pauseResumeBtnOn) { if (GUI.Button(_pauseButtonRect, _pauseResumeBtnText)) { PauseResumeTest(); } } GoBack.Button(); }
private void OnGUI() { GUI.contentColor = Color.red; GUI.Label(_attentionLabelRect, AttentionText); GUI.contentColor = Color.white; GUI.Label(_noteRect, Note); GUI.Label(_resultLabelRect, ResultLabel); GoBack.Button(); }
private void OnGUI() { GUI.contentColor = Color.red; GUI.Label(_attentionLabelRect, AttentionText); GUI.contentColor = Color.white; GUI.Label(_resultRect, ResultText); if (GUI.Button(_startButtonRect, startCoroutinesBtnText)) { StartTest(); } if (GUI.Button(_stopButtonRect, stopCoroutinesBtnText)) { StopTest(); } GoBack.Button(); }
private void OnGUI() { GUI.contentColor = Color.red; GUI.Label(_attentionLabelRect, AttentionText); GUI.contentColor = Color.white; GUI.Label(_resultLabelRect, ResultText); GUI.contentColor = Color.cyan; GUI.Label(_nonStandRect1, nonStandaloneText); if (_resultTextNonStandaloneOn) { GUI.Label(_nonStandRect2, ResultTextNonStandalone); } GUI.contentColor = Color.yellow; GUI.Label(_standRect1, standaloneText); if (_resultTextStandaloneOn) { GUI.Label(_standRect2, ResultTextStandalone); } GUI.contentColor = Color.white; if (GUI.Button(_startButtonRect, "Start coroutines")) { StartTest(); } if (GUI.Button(_stopButtonRect, "Stop coroutines")) { StopTest(); } GoBack.Button(); }