/// <summary> /// For now, just transitions to a new instance of the current screen we are on to simulate restarting. /// Might be more efficient to restart the current screen somehow, but this is much easier. /// </summary> /// <param name="clickedObject"></param> private void ReplayMission(BaseObject clickedObject) { BattleScreen battleScreen = ScreenManager.Instance.GetCurrentScreenAs <BattleScreen>(); DebugUtils.AssertNotNull(battleScreen); BattleScreen newScreen = (BattleScreen)Activator.CreateInstance(battleScreen.GetType(), BattleScreen.Player.DeckInstance.Deck, BattleScreen.Opponent.DeckInstance.Deck); DebugUtils.AssertNotNull(newScreen); battleScreen.Transition(newScreen); }