// Use this for initialization void Start() { TextAsset jsonFile = (TextAsset)Resources.Load("profile"); this.grammar = Tracery.Grammar.LoadFromJSON(jsonFile); GenerateNewProfile(); }
public override string Flatten(Grammar grammar) { return(text); }
public Unparser(Grammar grammar, int?seed = null, ActionCache cache = null) { _grammar = grammar; _saveData = cache ?? new ActionCache(); Seed(seed); }