public override void OnPointerExit(PointerEventData eventData) { base.OnPointerExit(eventData); onExit.Invoke(); if (m_FocusHandle != null) { Timer.Remove(m_FocusHandle); m_FocusHandle = null; } }
public override void OnPointerEnter(PointerEventData eventData) { base.OnPointerEnter(eventData); onEnter.Invoke(); m_FocusHandle = Timer.CallOnce(m_SpanTime, () => { onFocusSpan.Invoke(); m_FocusHandle = null; }); }
public override void Reset() { if (instance != null) { return; } instance = this; if (timer != null) { timer.Disable(); } timer = Timer.Add(delegate { if ([email protected]) { foreach (var cs in Interface.data.Values.OfType <CreepSpawn>()) { cs.Refresh(); } } }).Start(); }
public override void Reset() { smite = new Smite(); smite.WorthEx = (c, cs) => { return((cs.Wight() || cs.Golem()) && !LeagueSharp.ObjectManager.Get <LeagueSharp.Obj_AI_Hero>().Any(player => player.IsValid && !player.IsMe && !player.IsDead && player.ServerPosition.Distance([email protected]) < 1500)); }; if (timer != null) { timer.Disable(); } timer = Timer.Add(delegate { if ([email protected]) { foreach (var c in Interface.data.Values.OfType <Creep>()) { smite.Logic(c, c.CreepSpawn()); } } ; }).Start(); }
public Switch() : base([email protected]) { switchButton = 112; // F1 timer = Timer.Add(delegate { Logic(); }).Cooldown(0.1f); GuiFull(); }