public void AddAnotherEffect(GraphicalEffect next) { AnotherEffectDeadlockCheck(next); if (nextElement != null) { nextElement.AddAnotherEffect(next); } else { nextElement = next; } }
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); }