Exemplo 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();
         }
     }
 }
Exemplo 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);
        }
Exemplo 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);
         }
     }
 }