コード例 #1
0
ファイル: SayDialog.cs プロジェクト: 1194451658/fungus
 /// <summary>
 /// Sets the character name to display on the Say Dialog.
 /// Supports variable substitution e.g. John {$surname}
 /// </summary>
 public virtual void SetCharacterName(string name, Color color)
 {
     if (NameText != null)
     {
         var subbedName = stringSubstituter.SubstituteStrings(name);
         NameText = subbedName;
         nameTextAdapter.SetTextColor(color);
     }
 }
コード例 #2
0
 public void SetTextColor(Color textColor)
 {
     textAdapter.SetTextColor(textColor);
 }