Esempio n. 1
0
 public void StartUp()
 {
     if (!_startup)
     {
         _startup = true;
         bd       = GameObject.Find("board1_top/board").GetComponent <board>();
         bd3      = GameObject.Find("board3_top/board3").GetComponent <board3>();
         rep      = ((Component)base.gameObject.transform.parent.parent).GetComponent <repair>();
         rep_p    = ((Component)rep.transform.FindChild("board2_top/board2/UIScrollListRepair")).GetComponent <UIScrollListRepair>();
         Camera component = ((Component)rep.transform.FindChild("Camera")).GetComponent <Camera>();
         _clsScroll      = new KeyScrollControl(6, 6, scb);
         _clsRepair      = rep.now_clsRepair();
         damage_flag     = 0;
         _debug_shipping = false;
         TweenPosition.Begin(base.gameObject, 0.01f, new Vector3(840f, 123f, -1f));
         ships = _clsRepair.GetShipList();
         dockSelectController = new KeyControl();
         dockSelectController.setChangeValue(0f, 0f, 0f, 0f);
         rep_p.SetCamera(component);
         rep_p.SetKeyController(dockSelectController);
         rep_p.ResumeControl();
         rep_p.SetOnSelectedListener(delegate(UIScrollListRepairChild child)
         {
             rep_p.keyController.ClearKeyAll();
             rep_p.LockControl();
             rep.set_mode(-2);
             if (child.GetModel() != null)
             {
                 bd3.UpdateInfo(child.GetModel());
                 bd3.board3_appear(bstat: true);
                 rep.setmask(2, value: true);
                 rep.set_mode(3);
             }
         });
         redraw();
     }
 }