public void Show(OnDeckLoadedDelegate loadCallback = null, string originalName = null, string originalText = null) { gameObject.SetActive(true); transform.SetAsLastSibling(); LoadCallback = loadCallback; SelectedFileName = string.Empty; BuildDeckFileSelectionOptions(); nameInputField.text = originalName ?? Deck.DefaultName; textInputField.text = originalText ?? string.Empty; switch (CardGameManager.Current.DeckFileType) { case DeckFileType.Dec: instructionsText.text = DecInstructions; break; case DeckFileType.Hsd: instructionsText.text = HsdInstructions; break; case DeckFileType.Ydk: instructionsText.text = YdkInstructions; break; case DeckFileType.Txt: default: instructionsText.text = TxtInstructions; break; } }
public void Show(OnDeckLoadedDelegate loadCallback = null, string originalName = null, string originalText = null) { Menu.Show(); _loadCallback = loadCallback; _selectedFilePath = string.Empty; BuildDeckFileSelectionOptions(); nameInputField.text = originalName ?? Deck.DefaultName; textInputField.text = originalText ?? string.Empty; switch (CardGameManager.Current.DeckFileType) { case DeckFileType.Dec: instructionsText.text = DecInstructions; break; case DeckFileType.Hsd: instructionsText.text = HsdInstructions; break; case DeckFileType.Lor: instructionsText.text = LorInstructions; break; case DeckFileType.Ydk: instructionsText.text = YdkInstructions; break; case DeckFileType.Txt: default: instructionsText.text = TxtInstructions; break; } HideNewDeckPanel(); }