private void DrawDebug(MlfAsset scriptAsset) { foreach (string ds in MlfProcessorManager.DebugInstance(scriptAsset.mlfObject.MlfInstance)) { if (ds == null) { continue; } EditorGUILayout.LabelField(ds, EditorStyles.helpBox); } }
public void Interpret(bool clean = false) { //Cache interpreted text lastRawText = rawText; string commentedText = MlfInterpretor.CommentCode(rawText); flags = MlfInterpretor.FindFlags(commentedText).ToArray(); blocks = MlfInterpretor.FindBlocks(this, commentedText, path).ToArray(); //Process MlfProcessorManager.OnInstancePreInterpret(this); MlfProcessorManager.OnInstanceInterpret(this); MlfProcessorManager.OnInstancePostInterpret(this); //Clean if (clean) { MlfInterpretor.CleanCode(this); } }