public void onClearButtonClick() { Transform t = panels[tabGroup.select.uid].FindChild("TextList"); if (t != null) { ITextList textList = t.GetComponent <ITextList>(); textList.Clear(); } }
/// <summary> /// Subscribe to the logger to listen in on when logs /// are being made. /// </summary> protected override void OnLoad() { logList = GetControl <ITextList>("ConsoleList"); commandTextBox = GetControl <ITextBox>("CommandTextBox"); Log.OnLog += Log_OnLog; commandTextBox.OnSubmit += CommandTextBox_OnEndEdit; commandTextBox.Focus(); }