public static UnityEngine.Object GetLocalInstance(string resourceName) { return(m_assetMgr.LoadLocalInstance(resourceName)); }
/// <summary> /// 加载本地实例。 /// </summary> /// <param name="resourceName">模型名称</param> /// <returns>本地实例对象。</returns> public static Object GetLocalInstance(string resourceName) { UnityEngine.Object gameObject = m_assetMgr.LoadLocalInstance(resourceName); //m_gameObjectDic.Add(gameObject.GetInstanceID(), new KeyValuePair<string, Object>(resourceName, gameObject)); return(gameObject); }