public void Init(SWNodeRemap _node)
 {
     hasRightup    = false;
     node          = _node;
     ePopup_texRes = new SWEnumPopup(new string[] { "128x128", "256x256", "512x512", "1024x1024" }, (int)node.data.reso, SWEditorUI.MainSkin.button,
                                     delegate(int index){
         node.data.reso = (SWTexResolution)index;
         pause          = true;
         EditorCoroutineRunner.StartEditorCoroutine(ResizeTex(node.data.reso));
     });
 }
 protected void Process(System.Action <int, int> act, System.Action end)
 {
     counter = 0;
     for (int i = 0; i < threadUnit; i++)
     {
         for (int j = 0; j < threadUnit; j++)
         {
             tData u = new tData();
             u.x1  = rect.xMin + xUnit * i;
             u.x2  = u.x1 + xUnit;
             u.y1  = rect.yMin + yUnit * j;
             u.y2  = u.y1 + yUnit;
             u.act = act;
             Thread thread = new Thread(ThreadMission);
             thread.Start(u);
         }
     }
     EditorCoroutineRunner.StartEditorCoroutine(End(end));
 }