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); } } }
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); } }
public CodeCon(ICompilerCodeConnection con, int index) { this.con = con; this.index = index; }
public static Program RecursiveProgrammer(ICompilerCodeConnection compiledEvent) { return(RecursiveProgrammer(compiledEvent.CodeConnections?[0])); }