Ejemplo n.º 1
0
        static T LoadAssetAtPath <T>(string path) where T : Object
        {
#if UNITY_5
            return(AssetDataBase.LoadAssetAtPath <T>(path));
#else
            return(AssetDatabase.LoadAssetAtPath(path, typeof(T)) as T);
#endif
        }
 public bool AddAsset(string newAsset, AssetStatics asSt)
 {
     if (ContainsCcy(newAsset) || ContainsAsset(newAsset))
     {
         return(false);
     }
     else
     {
         AssetDataBase.Add(asSt);
         return(true);
     }
 }
 public bool ContainsAsset(string asset)
 {
     return(!(AssetDataBase.Where(x => x.Name == asset).Count() == 0));
 }
 public IEnumerable <string> GetAvailableAssets()
 {
     return(AssetDataBase.Select(x => x.Name));
 }
Ejemplo n.º 5
0
 static BuilderAssetDB()
 {
     Instance = new AssetDataBase();
 }