Example #1
0
 public void AddAnotherEffect(GraphicalEffect next)
 {
     AnotherEffectDeadlockCheck(next);
     if (nextElement != null)
     {
         nextElement.AddAnotherEffect(next);
     }
     else
     {
         nextElement = next;
     }
 }
Example #2
0
    public void Schedule(GraphicalEffect effect, float waitTime)
    {
        float occurTime = Time.time + waitTime;

        if (events.ContainsKey(occurTime))
        {
            GraphicalEffect found = events[occurTime];
            found.AddAnotherEffect(effect);
        }
        else
        {
            events.Add(occurTime, effect);
        }
        UpdateFirst(effect, occurTime);
    }