public LevelTestPoweUp(ServerMgr serverMgr) : base(serverMgr)
 {
     events.AddEvent(1, new Event(0.2f, EventType.REPEATABLE, new Action(() => GameLevelManager.CreateAndSendNewStatPowerup(mgr))));
 }
Exemplo n.º 2
0
 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));
 }