public LevelTestPoweUp(ServerMgr serverMgr) : base(serverMgr) { events.AddEvent(1, new Event(0.2f, EventType.REPEATABLE, new Action(() => GameLevelManager.CreateAndSendNewStatPowerup(mgr)))); }
private void CreateAndSendNewStatPowerup() { GameLevelManager.CreateAndSendNewStatPowerup(mgr); events.RescheduleEvent((int)Events.NEW_STAT_POWERUP, mgr.GetRandomGenerator().Next(SharedDef.NEW_STAT_POWERUP_TIMER_MIN, SharedDef.NEW_STAT_POWERUP_TIMER_MAX + 1)); }