Esempio n. 1
0
        public void StartUP()
        {
            this.rep = GameObject.Find("Repair Root").GetComponent <repair>();
            this.rep.set_mode(-1);
            if (this._isStartUpDone)
            {
                return;
            }
            this._isStartUpDone = true;
            this.bd2            = this.rep.get_transform().FindChild("board2_top/board2").GetComponent <board2>();
            this.bd3            = this.rep.get_transform().FindChild("board3_top/board3").GetComponent <board3>();
            this.dia            = GameObject.Find("dialog").GetComponent <dialog>();
            this.dia2           = GameObject.Find("dialog2").GetComponent <dialog2>();
            this.dia3           = GameObject.Find("dialog3").GetComponent <dialog3>();
            for (int i = 0; i < 4; i++)
            {
                GameObject[] arg_DE_0 = this.shutter;
                int          arg_DE_1 = i;
                string       arg_D4_0 = "board1_top/board/Grid/0";
                int          num      = i;
                arg_DE_0[arg_DE_1] = GameObject.Find(arg_D4_0 + num.ToString() + "/Shutter");
            }
            this._clsRepair = this.rep.now_clsRepair();
            this.now_kit    = this._clsRepair.Material.RepairKit;
            this._ANI       = this.rep.get_transform().FindChild("info").GetComponent <Animation>();
            int num2 = this._clsRepair.MapArea.NDockCount;

            if (num2 == this._clsRepair.MapArea.NDockMax)
            {
                num2--;
            }
            this.dockSelectController = new KeyControl(0, num2, 0.4f, 0.1f);
            this.dock_flag_init();
            this.dockSelectController.setChangeValue(-1f, 0f, 1f, 0f);
            this.dockSelectController.isLoopIndex = false;
            this._first_key     = false;
            this._go_kosoku     = 0;
            this._go_kosoku_m   = -1;
            this._select_dock   = 0;
            this._select_dock_m = -1;
            this._dock_exist    = false;
            this.redraw();
            this.bd2.StartUp();
            this.bd3.StartUp();
        }
Esempio n. 2
0
 public void StartUP()
 {
     rep = GameObject.Find("Repair Root").GetComponent <repair>();
     rep.set_mode(-1);
     if (!_isStartUpDone)
     {
         _isStartUpDone = true;
         bd2            = ((Component)rep.transform.FindChild("board2_top/board2")).GetComponent <board2>();
         bd3            = ((Component)rep.transform.FindChild("board3_top/board3")).GetComponent <board3>();
         dia            = GameObject.Find("dialog").GetComponent <dialog>();
         dia2           = GameObject.Find("dialog2").GetComponent <dialog2>();
         dia3           = GameObject.Find("dialog3").GetComponent <dialog3>();
         for (int i = 0; i < 4; i++)
         {
             GameObject[] array = shutter;
             int          num   = i;
             int          num2  = i;
             array[num] = GameObject.Find("board1_top/board/Grid/0" + num2.ToString() + "/Shutter");
         }
         _clsRepair = rep.now_clsRepair();
         now_kit    = _clsRepair.Material.RepairKit;
         _ANI       = ((Component)rep.transform.FindChild("info")).GetComponent <Animation>();
         int num3 = _clsRepair.MapArea.NDockCount;
         if (num3 == _clsRepair.MapArea.NDockMax)
         {
             num3--;
         }
         dockSelectController = new KeyControl(0, num3);
         dock_flag_init();
         dockSelectController.setChangeValue(-1f, 0f, 1f, 0f);
         dockSelectController.isLoopIndex = false;
         _first_key     = false;
         _go_kosoku     = 0;
         _go_kosoku_m   = -1;
         _select_dock   = 0;
         _select_dock_m = -1;
         _dock_exist    = false;
         redraw();
         bd2.StartUp();
         bd3.StartUp();
     }
 }