public void ViewGraveyard() { State.CardGallerySetupState setupState = new State.CardGallerySetupState(TheCardGameState.Players[0].mGraveyard, mIsCampaignCardGame ? State.GameScene.CampaignCardGame : State.GameScene.CardGame); State.StateHolder.StateManager.SetPassedState(setupState); State.StateHolder.StateManager.MoveToNextScene(Assets.GameCode.State.GameScene.CardGallery); }
public void Start() { State.CardGallerySetupState setupState = (State.CardGallerySetupState)State.StateHolder.StateManager.GetAndClearPassedState(); if (setupState.mIsUsingCardList) { mCards = setupState.mCardList; } else { mCards = Cards.Loading.CardLoading.ProduceDeck(State.StateHolder.StateManager.CardPool, setupState.mDeckSpec); } mLastScene = setupState.mLastScene; UpdateUI(); }