Пример #1
0
 public void StartGame()
 {
     if (!IsRunning)
     {
         Bird  = new BirdModel();
         Pipes = new List <PipeModel>();
         MainLoop();
     }
 }
Пример #2
0
 public async Task StartGame()
 {
     if (!IsRunning)
     {
         Bird  = new BirdModel();
         Pipes = new List <PipeModel>();
         await MainLoop();
     }
 }
Пример #3
0
 public GameManager()
 {
     Bird  = new BirdModel();
     Pipes = new List <PipeModel>();
 }
Пример #4
0
 private void ResetGameObjects()
 {
     Bird  = new BirdModel();
     Pipes = new List <PipeModel>();
 }