void CheckForCast() { if (isTargeting && Input.GetKeyDown(KeyCode.Mouse0)) { Vector2 targetPos = CursorManager.instance.GetWorldSpacePosition(); if (IsDistanceValid(transform.position, targetPos, activeSpell.range)) { activeSpell.Cast(this); EndCast(); } } }
public void Cast(Transform t) { so.Cast(t); }