Beispiel #1
0
 public static OTRGame getInstance()
 {
     if (instance == null)
     {
         instance = new OTRGame();
     }
     return(instance);
 }
Beispiel #2
0
 public Sprite(String imageName)
 {
     texture = OTRGame.getInstance().Content.Load <Texture2D>(imageName);
 }
Beispiel #3
0
 static void Main()
 {
     using (var game = OTRGame.getInstance())
         game.Run();
 }