private void UpdateTargetParticle() { if (_target == null || !_target.IsValid || !_target.IsVisible) { _particleManager.Remove("Target"); return; } _particleManager.DrawTargetLine(Owner, "Target", _target.Position, Color.DeepPink); }
private void onUpdate() { if (_menu.DrawUltEnabled && _abilities.Skill4.Ability?.Level > 0) { _particleManager.DrawRange(_owner, "ult_range", _abilities.Skill4.CastRange, Color.Red); } else { _particleManager.Remove("ult_range"); } if (_menu.DrawBlinkEnabled && _abilities.Blink != null) { _particleManager.DrawRange(_owner, "blink_range", _abilities.Blink.CastRange, Color.Gray); } else { _particleManager.Remove("blink_range"); } if (_menu.DrawSkill1Enabled && _abilities.Skill1.Ability?.Level > 0 ) { _particleManager.DrawRange(_owner, "skill1_range", _abilities.Skill1.Range + _abilities.Skill1.Radius, Color.Azure); } else { _particleManager.Remove("skill1_range"); } if (_menu.DrawSkill2Enabled && _abilities.Skill2.Ability?.Level > 0 ) { _particleManager.DrawRange(_owner, "skill2_range", _abilities.Skill2.CastRange, Color.Beige); } else { _particleManager.Remove("skill2_range"); } if (_menu.DrawSkill3Enabled && _abilities.Skill3.Ability?.Level > 0 ) { _particleManager.DrawRange(_owner, "skill3_range", _abilities.Skill3.CastRange, Color.CadetBlue); } else { _particleManager.Remove("skill3_range"); } var target = _targetSelector.SelectTarget(); if (_menu.DrawTargetEnabled && target != null) { _particleManager.DrawTargetLine( _owner, "target_line", target.Position, _menu.ComboKeyItem ? Color.DarkRed : Color.Gray); } else { _particleManager.Remove("target_line"); } }