using System.Collections; using System.Collections.Generic; using System.IO; using UnityEditor; using UnityEngine; using ConsoleLSystem; using System; public class Turtle3D : TurtleLSystem { public GameObject Petal; protected override void initLiteralInterpretation(){ turtleInterpretation = new Dictionary>>(); turtleInterpretation.Add("+", (float[] args) => new Tuple(null, Matrix4x4.Rotate(Quaternion.AngleAxis(args[0], Vector3.back)))); turtleInterpretation.Add("-", (float[] args) => new Tuple(null, Matrix4x4.Rotate(Quaternion.AngleAxis(args[0], Vector3.up)))); turtleInterpretation.Add("X", (float[] args) => new Tuple(Petal, Matrix4x4.identity)); } }