예제 #1
0
    public void ShowCurrentBuffer(BufferNode head)
    {
        BufferNode current = head;
        string     readout = "";

//		while(!current.IsEmpty()) {
        Debug.Log(Buffer.length);
        for (int i = 0; i < Buffer.length; i++)
        {
            if (readout != "")
            {
                readout += ", ";
            }
            readout += current.Val;
            current  = head.GetNext();
        }
        TM.text = readout;
    }
예제 #2
0
 private IEnumerator ClearNext()
 {
     timerGoing = true;
     for (float i = 0; i < LIFESPAN; i += Time.deltaTime)
     {
         if (restartTimer)
         {
             restartTimer = false;
             StartCoroutine(ClearNext());
             yield break;
         }
         yield return(null);
     }
     if (!Head.IsEmpty())
     {
         Head    = Head.GetNext();
         length -= 1;
         StartCoroutine(ClearNext());
     }
     else
     {
         timerGoing = false;
     }
 }