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; }
/// <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; }
public TextAdjustmentHelper(TextSettings helpee) { this.helpee = helpee; }