예제 #1
0
 public void LoadCampaignDeck(DeckData deck)
 {
     if (deck.IsCampaign)
     {
         campaignUI.SelectDeck(deck);
         InitialiseLoadCampaignUI();
     }
     else
     {
         throw new Exception("Loaded deck is not a campaign deck so cannot be loaded");
     }
 }
예제 #2
0
 public void ShowLootGeneratorForCampaign()
 {
     if (GameManager.instance.sceneManager.ActiveScene == SceneList.MainMenuScene)
     {
         campaignPage.gameObject.SetActive(true);
         campaignPage.LoadCampaignUI();
         campaignPage.SelectDeck(GameManager.instance.CampaignDeck, true);
     }
     else
     {
         throw new Exception("Not a valid scene to show loot generator");
     }
 }