コード例 #1
0
 internal static bool IsInRangeCached(this Vector3 from, Vector2 target, float range)
 {
     return(MenuManager.IsCacheEnabled
         ? CachedIsInRange.Get(from, target.To3D(), range)
         : from.IsInRange(target, range));
 }
コード例 #2
0
 internal static bool IsInRangeCached(this GameObject from, GameObject target, float range)
 {
     return(MenuManager.IsCacheEnabled
         ? CachedIsInRange.Get(from, target, range)
         : from.IsInRange(target, range));
 }
コード例 #3
0
 internal static bool IsInRangeCached(this Vector3 from, GameObject target, float range)
 {
     return(MenuManager.IsCacheEnabled
         ? CachedIsInRange.Get(@from, target.Position, range)
         : @from.IsInRange(target, range));
 }