public Texture2D GetTree(int num) { if (!Trees.ContainsKey(num)) { if (num >= 0) { string name = $"Images\\Tiles_5_{num}"; Trees[num] = LoadTexture(name); } else { string name = "Images\\Tiles_5"; Trees[num] = LoadTexture(name); } } return(Trees[num]); }