internal static bool IsInRangeCached(this Vector3 from, Vector2 target, float range) { return(MenuManager.IsCacheEnabled ? CachedIsInRange.Get(from, target.To3D(), range) : from.IsInRange(target, range)); }
internal static bool IsInRangeCached(this GameObject from, GameObject target, float range) { return(MenuManager.IsCacheEnabled ? CachedIsInRange.Get(from, target, range) : from.IsInRange(target, range)); }
internal static bool IsInRangeCached(this Vector3 from, GameObject target, float range) { return(MenuManager.IsCacheEnabled ? CachedIsInRange.Get(@from, target.Position, range) : @from.IsInRange(target, range)); }