/// <summary>
        /// Returns a dictionary of direct selections
        /// </summary>
        /// <param name="user">The functionality user</param>
        /// <returns>Dictionary (K,V) where K = rayOrigin used to select the object and V = info about the direct selection</returns>
        public static Dictionary <Transform, DirectSelectionData> GetDirectSelection(this IUsesDirectSelection user)
        {
#if FI_AUTOFILL
            return(default(Dictionary <Transform, DirectSelectionData>));
#else
            return(user.provider.GetDirectSelection());
#endif
        }
示例#2
0
 /// <summary>
 /// Returns a dictionary of direct selections
 /// </summary>
 /// <returns>Dictionary (K,V) where K = rayOrigin used to select the object and V = info about the direct selection</returns>
 public static Dictionary <Transform, DirectSelectionData> GetDirectSelection(this IUsesDirectSelection obj)
 {
     return(getDirectSelection());
 }
示例#3
0
 /// <summary>
 /// Calls OnResetDirectSelectionState on all implementors of IUsesDirectSelection
 /// </summary>
 public static void ResetDirectSelectionState(this IUsesDirectSelection obj)
 {
     resetDirectSelectionState();
 }
        /// <summary>
        /// Calls OnResetDirectSelectionState on all implementors of IUsesDirectSelection
        /// </summary>
        /// <param name="user">The functionality user</param>
        /// <param name="callback">The method that was originally subscribed</param>
        public static void UnsubscribeFromResetDirectSelectionState(this IUsesDirectSelection user, Action callback)
        {
#if !FI_AUTOFILL
            user.provider.UnsubscribeFromResetDirectSelectionState(callback);
#endif
        }
        /// <summary>
        /// Calls OnResetDirectSelectionState on all subscribers to ResetDirectSelectionState
        /// </summary>
        /// <param name="user">The functionality user</param>
        public static void ResetDirectSelectionState(this IUsesDirectSelection user)
        {
#if !FI_AUTOFILL
            user.provider.ResetDirectSelectionState();
#endif
        }
 /// <summary>
 /// Returns a dictionary of direct selections
 /// </summary>
 /// <returns>Dictionary (K,V) where K = rayOrigin used to select the object and V = info about the direct selection</returns>
 public static Dictionary <Transform, GameObject> GetDirectSelection(this IUsesDirectSelection obj)
 {
     return(getDirectSelection());
 }