public void ConsoleClear() { if (_conTxt != null) { _conTxt.text = ""; InputList.Clear(); MsgList.Clear(); } }
protected virtual void ProcessMessages() { if (MsgList != null && MsgList.Count > 0) { AddConsoleText(MsgList.ToArray()); } if (MsgList.Count > MSG_COUNT_MAX) { int numToRemove = MsgList.Count - MSG_COUNT_MAX; for (int i = 0; i < numToRemove; i++) { MsgList.RemoveRange(0, numToRemove); } } MsgList.Clear(); }
private void ClearMsg() { MsgList.Clear(); }