Esempio n. 1
0
 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();
         }
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
         }
     }
 }