public Load(LogicSelector c)
 {
     _currentLogic = c;
     _startTime    = Game.Time + WaitTime + RandGen.R.NextFloat(-10, 20);
     if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue)
     {
         Drawing.OnDraw += Drawing_OnDraw;
     }
     if (!AutoWalker.P.Name.Equals("Challenjour Ryze"))
     {
         Chat.OnMessage += Chat_OnMessage;
     }
     MainMenu.GetMenu("AB").Get <CheckBox>("reselectlane").OnValueChange += Checkbox_OnValueChange;
     MainMenu.GetMenu("AB").Get <Slider>("lane").OnValueChange           += Slider_OnValueChange;
 }
Exemple #2
0
 public Push(LogicSelector current)
 {
     _color      = new ColorBGRA(255, 210, 105, 255);
     _colorRed   = new ColorBGRA(139, 0, 0, 255);
     _colorGreen = new ColorBGRA(0, 100, 0, 255);
     SetRandVector();
     _randomVector = new Vector3();
     _currentWave  = new Obj_AI_Minion[0];
     _currentLogic = current;
     Core.DelayAction(SetWaveNumber, 500);
     SetCurrentWave();
     SetOffset();
     if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue)
     {
         Drawing.OnDraw += Drawing_OnDraw;
     }
 }