Esempio n. 1
0
        public T TakeDirect <T>(string id, string ext_ = null)
        {
            var ret = (T)AssetAdapter.Take(id, typeof(T), ext_);

            if (ret == null)
            {
                Log.Warning($"failed to directly take {id}.{ext_}");
            }
            return(ret);
        }
Esempio n. 2
0
 public T TakePersistent <T>(string id) where T : UnityEngine.Object => UnityEngine.Object.Instantiate((T)AssetAdapter.Take(id, typeof(T)));