public static AssetImages getInstance() { if (inst == null) { inst = new AssetImages(); } return(inst); }
public AssetItem(string _filepath, string _filename, string _type) { filepath = _filepath; filename = _filename; fileid = Path.GetFileName(filepath); type = _type; switch (_type) { case "Sounds": img = AssetImages.getInstance().image_sound; break; case "Scripts": img = AssetImages.getInstance().image_script; break; case "Shaders": img = AssetImages.getInstance().image_shader; break; } }
public static AssetImages getInstance() { if (inst == null) inst = new AssetImages(); return inst; }