diff --git a/Assets/RedBlueGames/TextTyper/Examples/TextTyperTester.cs b/Assets/RedBlueGames/TextTyper/Examples/TextTyperTester.cs index 5c11767..f0b7e74 100644 --- a/Assets/RedBlueGames/TextTyper/Examples/TextTyperTester.cs +++ b/Assets/RedBlueGames/TextTyper/Examples/TextTyperTester.cs @@ -31,7 +31,7 @@ public class TextTyperTester : MonoBehaviour public void Start() { - this.testTextTyper.PrintCompleted.AddListener(this.HandlePrintCompleted); + this.testTextTyper.PrintCompleted.AddListener(this.HandlePrintCompleted); this.testTextTyper.CharacterPrinted.AddListener(this.HandleCharacterPrinted); this.printNextButton.onClick.AddListener(this.HandlePrintNextClicked); @@ -43,14 +43,14 @@ public void Start() dialogueLines.Enqueue("You can size 40 and size 20"); dialogueLines.Enqueue("You can color tag like this."); dialogueLines.Enqueue("Sample Shake Animations: Light Rotation, Light Position, Full Shake\nSample Curve Animations: Slow Sine, Bounce Bounce, Crazy Flip"); - ShowScript( ); + ShowScript(); } public void Update() { if (Input.GetKeyDown(KeyCode.Space)) { - + var tag = RichTextTag.ParseNext("blahbooblue /// Define custom tags here. These should also be added to the CustomTagTypes List below /// - public struct CustomTags + public struct CustomTags { public const string Delay = "delay"; public const string Anim = "anim"; @@ -20,13 +20,13 @@ public struct CustomTags } private static readonly List UnityTagTypes = new List { "b", "i", "size", "color" }; - private static readonly List CustomTagTypes = new List + private static readonly List CustomTagTypes = new List { CustomTags.Delay, CustomTags.Anim, CustomTags.Animation, }; - + public static List CreateSymbolListFromText(string text) { var symbolList = new List(); @@ -133,7 +133,7 @@ public bool IsTag } } - public float GetFloatParameter(float defaultValue = 0f) + public float GetFloatParameter(float defaultValue = 0f) { if (!this.IsTag) { @@ -148,7 +148,7 @@ public float GetFloatParameter(float defaultValue = 0f) "Found Invalid parameter format in tag [{0}]. " + "Parameter [{1}] does not parse to a float.", this.Tag, - this.Tag.Parameter ); + this.Tag.Parameter); Debug.LogWarning(warning); paramValue = defaultValue; }