コード例 #1
0
 public TextDisplayer(Text textField, ICollection textToDisplay,
                      TextSettings textSettings, AudioSource sfxPlayer,
                      AudioClip textSound = null)
 {
     this.textField     = textField;
     this.textToDisplay = textToDisplay as List <string>;
     this.textSettings  = textSettings;
     this.sfxPlayer     = sfxPlayer;
     this.textSound     = textSound;
 }
コード例 #2
0
        /// <summary>
        /// Copy constructor.
        /// </summary>
        /// <param name="toCopy">To copy.</param>
        public TextSettings(TextSettings toCopy)
        {
            this.textboxController = toCopy.textboxController;
            this.audioSample       = toCopy.audioSample;
            this.textSpeed         = toCopy.textSpeed;
            SetHigherSpeed();
            this.linesPerTextbox = toCopy.linesPerTextbox;
            this.font            = toCopy.font;

            if (font == null)
            {
                LoadDefaultFont();
            }

            this.fontSize = toCopy.fontSize;
        }
コード例 #3
0
 public TextAdjustmentHelper(TextSettings helpee)
 {
     this.helpee = helpee;
 }