public static FindObjectsOfTypeIncludingAssets ( Type type ) : Object[] | ||
type | Type | |
return | Object[] |
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); }