Ejemplo n.º 1
0
 public Texture GetTreeBranches(int num)
 {
     if (!TreeBranches.ContainsKey(num))
     {
         string name = $"Images\\Tree_Branches_{num}";
         TreeBranches[num] = LoadTexture(name);
     }
     return(TreeBranches[num]);
 }
Ejemplo n.º 2
0
 public Texture GetTreeBranches(int num)
 {
     if (!TreeBranches.ContainsKey(num))
     {
         string name = String.Format("Images\\Tree_Branches_{0}", num);
         TreeBranches[num] = LoadTexture(name);
     }
     return(TreeBranches[num]);
 }