コード例 #1
0
 public static void AddMeshResource(NeededResource res)
 {
     if (!resources.ContainsKey(res.resourceName))
     {
         resources.Add(res.resourceName, new BlockResource(res.mesh, res.resourceName));
     }
 }
コード例 #2
0
 public static void AddTextureResource(NeededResource res)
 {
     if (!resources.ContainsKey(res.resourceName))
     {
         resources.Add(res.resourceName, new BlockResource(res.texture, res.resourceName));
     }
 }
コード例 #3
0
 public static void AddAssetBundleResource(NeededResource res)
 {
     if (!resources.ContainsKey(res.resourceName))
     {
         resources.Add(res.resourceName, new BlockResource(res.assetBundle, res.resourceName));
     }
 }
コード例 #4
0
 public static void AddAudioResource(NeededResource res)
 {
     if (!resources.ContainsKey(res.resourceName))
     {
         resources.Add(res.resourceName, new BlockResource(res.audioClip, res.resourceName));
     }
 }