コード例 #1
0
        /// <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();
 }
コード例 #4
0
        /// <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
        }
コード例 #5
0
        /// <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
        }
コード例 #6
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, GameObject> GetDirectSelection(this IUsesDirectSelection obj)
 {
     return(getDirectSelection());
 }