Ejemplo n.º 1
0
        private void DrawDebug(MlfAsset scriptAsset)
        {
            foreach (string ds in MlfProcessorManager.DebugInstance(scriptAsset.mlfObject.MlfInstance))
            {
                if (ds == null)
                {
                    continue;
                }

                EditorGUILayout.LabelField(ds, EditorStyles.helpBox);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }