public static void Destroy() { if (instance != null) { instance.stop(); instance = null; } }
public static void Create(bool enabled = true, float interval = START_INTERVAL, float randomVariation = RANDOM_VARIATION, float minInterval = MIN_INTERVAL, float intervalDecreaseRate = INTERVAL_DECREASE_RATE, float delay = DEFAULT_DELAY, int randomSeed = -1) { if (instance != null) { HumanRandomizer.Destroy(); } instance = new HumanRandomizer(enabled, interval, randomVariation, minInterval, intervalDecreaseRate, delay, randomSeed); }
public static void Create(Randomizer randomizer, Level level) { HumanRandomizer.Create(randomizer.enabled, randomizer.interval, randomizer.variation, randomizer.minInterval, randomizer.intervalDecreaseRate, randomizer.delay, level.randomSeed); }