private void PrepareAndScheduleEffect(GraphicalEffect effect) { if (rescheduling && effect.rescheduling) { effect.rescheduling = false; } if (runAtStart) { effect.runAtStart = false; } effect.EnqueueToScheduler(); }
private void PrepareAndScheduleEffect(GraphicalEffect effect, float delay) { if (rescheduling && effect.rescheduling) { effect.rescheduling = false; } if (runAtStart) { effect.runAtStart = false; } effect.EnqueueToScheduler(effect.occurTimeDelay + delay); }
private void PrepareAndScheduleEffect(GraphicalEffect effect) { if (effect == this) { return; } if (rescheduling && effect.rescheduling) { effect.rescheduling = false; } if (runAtStart) { effect.runAtStart = false; } SetEffectTargetObject(effect); effect.EnqueueToScheduler(); }
public override void PerformChange() { CheckAtLeastOneEffect(); GraphicalEffect next = PickRandomEffect(); if (!allowImmediateRepeat && CheckAtLeastTwoEffects()) { while (next == lastEffect) { next = PickRandomEffect(); } } lastEffect = next; next.EnqueueToScheduler(); }