Esempio n. 1
0
 public Texture2D GetUnderworld(int num)
 {
     if (!Underworld.ContainsKey(num))
     {
         string name = $"Images\\Backgrounds\\Underworld {num}";
         Underworld[num] = LoadTexture(name);
     }
     return(Underworld[num]);
 }
Esempio n. 2
0
 public Texture2D GetUnderworld(int num)
 {
     if (!Underworld.ContainsKey(num))
     {
         string name = String.Format("Images\\Backgrounds\\Underworld {0}", num);
         Underworld[num] = LoadTexture(name);
     }
     return(Underworld[num]);
 }