Example #1
0
        private void Next()
        {
            value = RandFloat.GetBetween(value_range);

            interval_position = 0.0f;
            interval_length   = RandFloat.GetBetween(interval_range);
        }
Example #2
0
        private void Next()
        {
            is_on = is_on.GetFlipped();

            interval_length = is_on.ConvertBool(
                () => RandFloat.GetBetween(on_interval_range),
                () => RandFloat.GetBetween(off_interval_range)
                );

            interval_total_time = 0.0f;
        }
Example #3
0
        protected override float Execute(float time, float delta)
        {
            if (drift_timer.Repeat())
            {
                time_multiplier = RandFloat.GetVariance(1.0f, drift);
                drift_timer.RestartSetDurationInSeconds(RandFloat.GetBetween(0.100f, 0.250f));
            }

            float drifted_delta = time_multiplier * delta;

            drifted_time += drifted_delta;
            return(ExecuteDrifted(drifted_time, drifted_delta));
        }
Example #4
0
 protected override float CalculateInterval()
 {
     return(RandFloat.GetBetween(range));
 }