FindObjectsOfTypeIncludingAssets() public static method

public static FindObjectsOfTypeIncludingAssets ( Type type ) : Object[]
type Type
return Object[]
Exemplo n.º 1
0
        public static T GetSingletonIncludingAssets <T> ()
        {
            object obj = null;

            if (!singletons.TryGetValue(typeof(T), out obj))
            {
                obj = GetSingletonIncludingAssets <T>(Object.FindObjectsOfTypeIncludingAssets(typeof(T)));
            }
            return((T)obj);
        }