示例#1
0
        /// <summary>
        /// Check whether the specified transform is over the viewer's head
        /// </summary>
        /// <param name="user">The functionality user</param>
        /// <param name="rayOrigin">The rayOrigin to test</param>
        /// <returns>Whether the specified transform is over the viewer's head</returns>
        public static bool IsAboveHead(this IUsesViewerBody user, Transform rayOrigin)
        {
#if FI_AUTOFILL
            return(default(bool));
#else
            return(user.provider.IsAboveHead(rayOrigin));
#endif
        }
示例#2
0
 /// <summary>
 /// Returns whether the specified transform is over the viewer's head
 /// </summary>
 /// <param name="rayOrigin">The rayOrigin to test</param>
 public static bool IsAboveHead(this IUsesViewerBody obj, Transform rayOrigin)
 {
     return(isAboveHead(rayOrigin));
 }
示例#3
0
 /// <summary>
 /// Returns whether the specified transform is over the viewer's shoulders and behind the head
 /// </summary>
 /// <param name="rayOrigin">The rayOrigin to test</param>
 public static bool IsOverShoulder(this IUsesViewerBody obj, Transform rayOrigin)
 {
     return(isOverShoulder(rayOrigin));
 }