public TagChain Parse() { string data = GetData(); if (!string.IsNullOrEmpty(data)) { try { TagChain tagChain = TagInterpreter.LoadTags(data); return(tagChain); } catch (Exception e) { Debug.LogError("Unable to parse dialog " + e); } } return(new TagChain()); }
private void Update() { if (Active) { int protection = 0; while (TagChain.GetNext(skip: _isFurther) && protection < 1000) { protection++; } if (protection == 1000) { Debug.Log("Protection"); } if (TagChain.IsEnd) { Deactivate(); } } }