public override void ConfirmCast() { var ray = AbilityHelper.GetScreenRay(); if (!AbilityHelper.TryGetWorld(ray, out var hit)) { return; } var pos = Self.transform.position; var dir = hit.point - pos; CastVectorTarget(pos, dir); }
public override void ConfirmCast() { var ray = AbilityHelper.GetScreenRay(); if (!AbilityHelper.TryGetWorld(ray, out var hit)) { return; } if (!CheckBuilder.AllowCast()) { return; } CastRange.MaxDistance = _overheat.Active ? _overheatCastRange : _castRange; if (!CastRange.InRange(hit.point)) { return; } CheckBuilder.DoCast(); CastGroundTarget(hit.point); Modules.Abilitiable.NotifyAbilityCast(new AbilityEventArgs(Self, View.StatCost.Cost)); }