public static void AddMeshResource(NeededResource res) { if (!resources.ContainsKey(res.resourceName)) { resources.Add(res.resourceName, new BlockResource(res.mesh, res.resourceName)); } }
public static void AddTextureResource(NeededResource res) { if (!resources.ContainsKey(res.resourceName)) { resources.Add(res.resourceName, new BlockResource(res.texture, res.resourceName)); } }
public static void AddAssetBundleResource(NeededResource res) { if (!resources.ContainsKey(res.resourceName)) { resources.Add(res.resourceName, new BlockResource(res.assetBundle, res.resourceName)); } }
public static void AddAudioResource(NeededResource res) { if (!resources.ContainsKey(res.resourceName)) { resources.Add(res.resourceName, new BlockResource(res.audioClip, res.resourceName)); } }