Example #1
0
	private void PrepareAndScheduleEffect(GraphicalEffect effect) {

		if (rescheduling && effect.rescheduling) {
			effect.rescheduling = false;
		}
		if (runAtStart) {
			effect.runAtStart = false;
		}
		
		effect.EnqueueToScheduler();
	}
Example #2
0
	private void PrepareAndScheduleEffect(GraphicalEffect effect, float delay) {

		if (rescheduling && effect.rescheduling) {
			effect.rescheduling = false;
		}
		if (runAtStart) {
			effect.runAtStart = false;
		}
		
		effect.EnqueueToScheduler(effect.occurTimeDelay + delay);
	}
Example #3
0
    private void PrepareAndScheduleEffect(GraphicalEffect effect)
    {
        if (rescheduling && effect.rescheduling)
        {
            effect.rescheduling = false;
        }
        if (runAtStart)
        {
            effect.runAtStart = false;
        }

        effect.EnqueueToScheduler();
    }
Example #4
0
    private void PrepareAndScheduleEffect(GraphicalEffect effect, float delay)
    {
        if (rescheduling && effect.rescheduling)
        {
            effect.rescheduling = false;
        }
        if (runAtStart)
        {
            effect.runAtStart = false;
        }

        effect.EnqueueToScheduler(effect.occurTimeDelay + delay);
    }
Example #5
0
	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();
	}
Example #6
0
    public override void PerformChange()
    {
        CheckAtLeastOneEffect();

        GraphicalEffect next = PickRandomEffect();

        if (!allowImmediateRepeat && CheckAtLeastTwoEffects())
        {
            while (next == lastEffect)
            {
                next = PickRandomEffect();
            }
        }

        lastEffect = next;
        next.EnqueueToScheduler();
    }
Example #7
0
    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();
    }