private void CloseChoices() { _textChoicesWindow.Close(); _textChoicesWindow = null; _textChoices.Dispose(); _textChoices = null; }
private void ShouldLearnMoveAction(bool value) { if (value) { _fadeTransition = new FadeToColorTransition(1_000, 0); _state = State.LearnMove_FadeToSummary; } else { _textChoicesWindow.Close(); _textChoicesWindow = null; _textChoices.Dispose(); _textChoices = null; _stringPrinter.Close(); _stringPrinter = null; SetGiveUpLearningMove(); } }
public void Dispose() { _fightChoices.Dispose(); _moveChoices?.Dispose(); }