Example #1
0
 void SetParent(ICompilerCodeConnection original, Transform parent)
 {
     (original as MonoBehaviour).transform.SetParent(parent, true);
     foreach (var c in original.CodeConnections)
     {
         if (c != null)
         {
             SetParent(c, parent);
         }
     }
 }
Example #2
0
        void CodeDelete(ICompilerCodeConnection code)
        {
            if (code.CodeConnections == null)
            {
                return;
            }

            foreach (var c in code.CodeConnections)
            {
                if (c != null)
                {
                    CodeDelete(c);
                }
            }

            var v = code as ICompilerCode;

            if (v != null)
            {
                ValueDelete(v);
            }
        }
Example #3
0
 public CodeCon(ICompilerCodeConnection con, int index)
 {
     this.con   = con;
     this.index = index;
 }
Example #4
0
 public static Program RecursiveProgrammer(ICompilerCodeConnection compiledEvent)
 {
     return(RecursiveProgrammer(compiledEvent.CodeConnections?[0]));
 }