Exemplo n.º 1
0
        public void onClearButtonClick()
        {
            Transform t = panels[tabGroup.select.uid].FindChild("TextList");

            if (t != null)
            {
                ITextList textList = t.GetComponent <ITextList>();
                textList.Clear();
            }
        }
Exemplo n.º 2
0
        /// <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();
        }