Пример #1
0
        private void Start()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("a what;");
            sb.AppendLine("b the; // haha");
            sb.AppendLine("#b;");
            sb.AppendLine("c f***;");
            sb.AppendLine("// what the");
            sb.AppendLine("d ddddd;");

            TextScript script = new TextScript("Test", sb.ToString());

            Debug.Log(script.buffer);
            Debug.Log(script.ToString(true));
        }