コード例 #1
0
 void SubstituteKeyStrings()
 {
     foreach (TextMeshProUGUI tmproText in GetComponentsInChildren <TextMeshProUGUI>())
     {
         tmproText.SetText(StringKeysReplacer.Replace(tmproText.text));
     }
 }
コード例 #2
0
ファイル: UIDialogPanel.cs プロジェクト: zlotny/Fakemon
 public void ShowText(string text)
 {
     m_currentMessage = StringKeysReplacer.Replace(text);
     m_dialogPanelText.SetText(m_currentMessage);
     this.gameObject.SetActive(true);
     CharacterControls.Instance.SetControlsEnabled(false);
 }