public void CheckInf(AssetBundleInf inf) { for (int i = 0; i < inf.watchList.Count; i++) { ObjectState os = inf.watchList[i]; if (os.obj == null) { inf.watchList.RemoveAt(i); inf.RemoveRef(); } } }
public bool isDontDestroyOnload(AssetBundleInf inf) { bool ret = false; for (int j = 0; j < inf.watchList.Count; j++) { if (inf.watchList[j].state == ObjectState.State.DontDestroyOnload) { ret = true; break; } } return(ret); }
public void SetBundle(string s, Object obj, ObjectState.State state = ObjectState.State.Normal) { if (obj != null) { var conf = Find(s); if (conf != null) { conf.AddRef(obj, state); } else { AssetBundleInf abf = new AssetBundleInf(s); abf.AddRef(obj, state); list.Add(abf); } } }