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"); } }
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"); } }