public SVDoubleLinkedListNode <T> AddToHeader(T t) { SVDoubleLinkedListNode <T> node = m_DoubleLinkNodePool.Spawn(true); node.prev = null; node.next = null; node.t = t; return(AddToHeader(node)); }
public AssetBundle LoadAssetByName(string name) { uint crc = Crc32.GetCrc32(name); if (m_AssetBundleItemDic.TryGetValue(crc, out SVAssetBundleItem bundle)) { bundle.Refcount++; return(bundle.assetBundle); } else { string fullpath = ABLoadPath + name; AssetBundle ab = AssetBundle.LoadFromFile(fullpath); bundle = m_AssetBundleItemPool.Spawn(true); bundle.assetBundle = ab; bundle.Refcount++; m_AssetBundleItemDic.Add(crc, bundle); return(ab); } }