예제 #1
0
        private void StartFight(Character character, Models.Game game)
        {
            var currentFight = CreateCurrentFight(character, game);

            FightAuth.SetCurrentFight(currentFight);
            StaticBooleans.SetHasFightBeenInitializedBool(false);
        }
예제 #2
0
 public void Draw(SpriteBatch spriteBatch, ContentManager Content)
 {
     if (StaticBooleans.IsShopOpen)
     {
         shopScreen.Draw(spriteBatch);
     }
     else if (FightAuth.HasStartedFight())
     {
         if (!StaticBooleans.HasFightBeenInitialized)
         {
             fightScreen.Initialize();
             fightScreen.LoadContent(Content);
             StaticBooleans.SetHasFightBeenInitializedBool(true);
         }
         fightScreen.Draw(spriteBatch);
     }
     else
     {
         LoadGameMenu(spriteBatch);
     }
 }