public T Get <T>(GameObject go) where T : Object { T t = assetHolder.Get <T>(); ResourceManager.GetInstance().AddGameObjectAssetHolder(go, assetHolder); return(t); }
public GameObject Get() { GameObject prefab = assetHolder.Get <GameObject>(); GameObject go = GameObject.Instantiate <GameObject>(prefab); ResourceManager.GetInstance().AddGameObjectAssetHolder(go, assetHolder); return(go); }