Example #1
0
    public void Log(string l)
    {
        LogOpBean bean = new LogOpBean();

        bean.op    = LogOpBean.OpId.ShowLog;
        bean.param = l;
        operationQueue.Enqueue(bean);
    }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (LogText != null)
     {
         if (operationQueue.Count() > 0)
         {
             LogOpBean bean = operationQueue.Dequeue();
             LogText.text    = LogText.text + "\n" + (string)bean.param;
             scrollbar.value = 0.0000000000001f;
         }
     }
 }