private static void OnDestroy(GameObject sender) { if (AxeList.Any(o => o.Key.NetworkId == sender.NetworkId)) { AxeList.Remove(sender); } }
private static void OnUpdate() { foreach (var sender in AxeList.Where(x => x.Key.IsDead || !x.Key.IsValid).Select(x => x.Key)) { AxeList.Remove(sender); } if (Me.IsDead || Me.IsRecalling()) { return; } R.Range = MiscOption.GetSlider("R", "GlobalRMax").Value; CatchAxeEvent(); KillStealEvent(); AutoUseEvent(); if (Orbwalker.Mode == OrbwalkingMode.Combo) { ComboEvent(); } if (Orbwalker.Mode == OrbwalkingMode.Mixed) { HarassEvent(); } if (Orbwalker.Mode == OrbwalkingMode.Laneclear) { ClearEvent(); } }
private static void OnDestroy(GameObject sender) { if (sender != null && sender.Name.Contains("Draven_") && sender.Name.Contains("_Q_reticle_self")) { if (AxeList.Any(o => o.Key.NetworkId == sender.NetworkId)) { AxeList.Remove(sender); } } }
private static void OnDestroy(GameObject sender) { try { if (AxeList.Any(o => o.Key.NetworkId == sender.NetworkId)) { AxeList.Remove(sender); } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnDestroy." + ex); } }
private static void OnUpdate(EventArgs args) { foreach (var sender in AxeList.Where(x => x.Key.IsDead || !x.Key.IsValid).Select(x => x.Key)) { AxeList.Remove(sender); } if (Me.IsDead || Me.IsRecalling()) { return; } if (Me.IsWindingUp) { return; } R.Range = MiscOption.GetSlider("R", "GlobalRMax").Value; CatchAxeEvent(); KillStealEvent(); AutoUseEvent(); switch (Orbwalker.ActiveMode) { case OrbwalkerMode.Combo: ComboEvent(); break; case OrbwalkerMode.Harass: HarassEvent(); break; case OrbwalkerMode.LaneClear: ClearEvent(); break; } }
private static void OnUpdate() { try { foreach (var sender in AxeList.Where(x => x.Key.IsDead || !x.Key.IsValid).Select(x => x.Key)) { AxeList.Remove(sender); } if (Me.IsDead || Me.IsRecalling()) { return; } CatchAxeEvent(); KillStealEvent(); AutoUseEvent(); switch (Orbwalker.Mode) { case OrbwalkingMode.Combo: ComboEvent(); break; case OrbwalkingMode.Mixed: HarassEvent(); break; case OrbwalkingMode.Laneclear: ClearEvent(); break; } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnUpdate." + ex); } }