public static Texture[] AddSprite(string file, int width, int height) { if (sheetsLoaded) { throw new Exception($"Unable to add texture (file: {file}. Sheets are already loaded."); } var dataList = BitmapLoader.LoadSprite(file, width, height); var textures = new Texture[dataList.Count]; for (int i = 0; i < dataList.Count; i++) { textures[i] = addTexture(dataList[i], file, width, height); } return(textures); }