Exemple #1
0
 void Update()
 {
     if (current != null)
     {
         if (current.IsOver())
         {
             current = null;
         }
     }
     if (queue.Count > 0 && current == null)
     {
         current = queue.Dequeue();
         current.Begin();
     }
 }