Exemplo n.º 1
0
        public void _init_repair()
        {
            _isBtnMaruUp                     = false;
            rep                              = GameObject.Find("Repair Root").GetComponent <repair>();
            bd1                              = GameObject.Find("board1_top/board").GetComponent <board>();
            bd2                              = GameObject.Find("board2").GetComponent <board2>();
            csb                              = GameObject.Find("dialog2_top/dialog2/Banner/CommonShipBanner2").GetComponent <CommonShipBanner>();
            dockSelectController             = new KeyControl(0, 1);
            dockSelectController.isLoopIndex = false;
            dockSelectController.setChangeValue(0f, 1f, 0f, -1f);
            iTween.ScaleTo(base.gameObject, new Vector3(0.6f, 0.6f, 0.6f), 0f);
            _Button_Yes2      = GameObject.Find("dialog2_top/dialog2/btn_yes").GetComponent <UIButton>();
            _Button_No2       = GameObject.Find("dialog2_top/dialog2/btn_no").GetComponent <UIButton>();
            btn_obj[0]        = _Button_No2.gameObject;
            btn_obj[1]        = _Button_Yes2.gameObject;
            _uiOverlayButton2 = GameObject.Find("dialog2_top/dialog2/OverlayBtn2").GetComponent <UIButton>();
            EventDelegate.Add(_uiOverlayButton2.onClick, _onClickOverlayButton2);
            UIButtonMessage component = _Button_Yes2.GetComponent <UIButtonMessage>();

            component.target       = base.gameObject;
            component.functionName = "Pressed_Button_Yes2";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
            UIButtonMessage component2 = _Button_No2.GetComponent <UIButtonMessage>();

            component2.target       = base.gameObject;
            component2.functionName = "Pressed_Button_No2";
            component2.trigger      = UIButtonMessage.Trigger.OnClick;
            Set_Button_Sprite(value: true);
            _clickmask = GameObject.Find("click_mask").GetComponent <repair_clickmask>();
            _bVector   = Vector3.one;
        }
Exemplo n.º 2
0
        public void _init_repair()
        {
            this._isBtnMaruUp                     = false;
            this.rep                              = GameObject.Find("Repair Root").GetComponent <repair>();
            this.bd1                              = GameObject.Find("board").GetComponent <board>();
            this.bd2                              = GameObject.Find("board2").GetComponent <board2>();
            this.dockSelectController             = new KeyControl(0, 1, 0.4f, 0.1f);
            this.dockSelectController.isLoopIndex = false;
            this.dockSelectController.setChangeValue(0f, 1f, 0f, -1f);
            iTween.ScaleTo(base.get_gameObject(), new Vector3(0.6f, 0.6f, 0.6f), 0f);
            this._Button_Yes3      = GameObject.Find("dialog3_top/dialog3/btn_yes").GetComponent <UIButton>();
            this._Button_No3       = GameObject.Find("dialog3_top/dialog3/btn_no").GetComponent <UIButton>();
            this.btn_obj[0]        = this._Button_No3.get_gameObject();
            this.btn_obj[1]        = this._Button_Yes3.get_gameObject();
            this._uiOverlayButton3 = GameObject.Find("dialog3_top/dialog3/OverlayBtn3").GetComponent <UIButton>();
            EventDelegate.Add(this._uiOverlayButton3.onClick, new EventDelegate.Callback(this._onClickOverlayButton3));
            UIButtonMessage component = this._Button_Yes3.GetComponent <UIButtonMessage>();

            component.target       = base.get_gameObject();
            component.functionName = "Pressed_Button_Yes3";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
            UIButtonMessage component2 = this._Button_No3.GetComponent <UIButtonMessage>();

            component2.target       = base.get_gameObject();
            component2.functionName = "Pressed_Button_No3";
            component2.trigger      = UIButtonMessage.Trigger.OnClick;
            this.Set_Button_Sprite(true);
            this._clickmask = GameObject.Find("click_mask").GetComponent <repair_clickmask>();
            this._bVector   = Vector3.get_one();
        }
Exemplo n.º 3
0
 public void _init_repair()
 {
     this.rep         = GameObject.Find("Repair Root").GetComponent <repair>();
     this.board_mask1 = GameObject.Find("Repair Root/board1_top_mask");
     this.board_mask1.GetComponent <UIPanel>().depth = 50;
     this.bd2 = GameObject.Find("board2").GetComponent <board2>();
 }
Exemplo n.º 4
0
        private void _all_init()
        {
            board           component   = base.get_transform().FindChild("board1_top/board").GetComponent <board>();
            board2          component2  = base.get_transform().FindChild("board2_top/board2").GetComponent <board2>();
            board3          component3  = base.get_transform().FindChild("board3_top/board3").GetComponent <board3>();
            board3_btn      component4  = base.get_transform().FindChild("board3_top/board3/Button").GetComponent <board3_btn>();
            board1_top_mask component5  = base.get_transform().FindChild("board1_top_mask").GetComponent <board1_top_mask>();
            board2_top_mask component6  = base.get_transform().FindChild("board2_top_mask").GetComponent <board2_top_mask>();
            board3_top_mask component7  = base.get_transform().FindChild("board3_top_mask").GetComponent <board3_top_mask>();
            crane_anime     component8  = base.get_transform().FindChild("board1_top/board/Grid/01/Anime").GetComponent <crane_anime>();
            dialog          component9  = base.get_transform().FindChild("dialog_top/dialog").GetComponent <dialog>();
            dialog2         component10 = base.get_transform().FindChild("dialog2_top/dialog2").GetComponent <dialog2>();
            high_repair     component11 = base.get_transform().FindChild("board1_top/board/Grid/00/repair_now/btn_high_repair").GetComponent <high_repair>();
            sentaku         component12 = base.get_transform().FindChild("board1_top/board/Grid/00/btn_Sentaku").GetComponent <sentaku>();
            sw component13 = base.get_transform().FindChild("board3_top/board3/sw01").GetComponent <sw>();

            component._init_repair();
            component2._init_repair();
            component3._init_repair();
            component5._init_repair();
            component6._init_repair();
            component7._init_repair();
            component4._init_repair();
            component8._init_repair();
            component9._init_repair();
            component10._init_repair();
            component11._init_repair();
            component12._init_repair();
            component.ResetMaruKey();
            GameObject.Find("Repair Root/debug").get_transform().localPositionY(-120f);
        }
Exemplo n.º 5
0
        public void OnClick()
        {
            this.rep = GameObject.Find("Repair Root").GetComponent <repair>();
            GameObject target = GameObject.Find("board1_top");
            int        mode   = this.rep.now_mode();

            SoundUtils.PlaySE(SEFIleInfos.Explode);
            iTween.Stop(target);
            iTween.MoveFrom(target, iTween.Hash(new object[]
            {
                "islocal",
                true,
                "y",
                200f,
                "time",
                0.5f,
                "easetype",
                iTween.EaseType.easeOutElastic
            }));
            iTween.MoveTo(target, iTween.Hash(new object[]
            {
                "islocal",
                true,
                "y",
                0f,
                "delay",
                0.2f
            }));
            this.bd2 = GameObject.Find("board2_top/board2").GetComponent <board2>();
            this.bd2.DBG_damage();
            this.bd2.UpdateList();
            this.rep.set_mode(mode);
        }
Exemplo n.º 6
0
 public void _init_repair()
 {
     rep  = GameObject.Find("Repair Root").GetComponent <repair>();
     bd1  = GameObject.Find("board").GetComponent <board>();
     bd2  = GameObject.Find("board2").GetComponent <board2>();
     dia  = GameObject.Find("dialog_top/dialog").GetComponent <dialog>();
     dia2 = GameObject.Find("dialog2_top/dialog2").GetComponent <dialog2>();
 }
Exemplo n.º 7
0
 private void StartUp()
 {
     if (!_isStartUP)
     {
         _isStartUP = true;
         bd1m       = ((Component)base.transform.FindChild("board1_top_mask")).GetComponent <board1_top_mask>();
         bd2m       = ((Component)base.transform.FindChild("board2_top_mask")).GetComponent <board2_top_mask>();
         bd3m       = ((Component)base.transform.FindChild("board3_top_mask")).GetComponent <board3_top_mask>();
         bd2        = ((Component)base.transform.FindChild("board2_top/board2")).GetComponent <board2>();
         sm         = SingletonMonoBehaviour <SoundManager> .Instance;
     }
 }
Exemplo n.º 8
0
 public void _init_repair()
 {
     bd1 = GameObject.Find("board1_top/board").GetComponent <board>();
     bd2 = GameObject.Find("board2_top/board2").GetComponent <board2>();
     rep = GameObject.Find("Repair Root").GetComponent <repair>();
     for (int i = 0; i < 4; i++)
     {
         bd1.set_anime(i, stat: false);
         bd1.set_HS_anime(i, stat: false);
     }
     now_repairs = 0;
     _isHPgrow   = false;
 }
Exemplo n.º 9
0
 private void StartUp()
 {
     if (this._isStartUP)
     {
         return;
     }
     this._isStartUP = true;
     this.bd1m       = base.get_transform().FindChild("board1_top_mask").GetComponent <board1_top_mask>();
     this.bd2m       = base.get_transform().FindChild("board2_top_mask").GetComponent <board2_top_mask>();
     this.bd3m       = base.get_transform().FindChild("board3_top_mask").GetComponent <board3_top_mask>();
     this.bd2        = base.get_transform().FindChild("board2_top/board2").GetComponent <board2>();
     this.sm         = SingletonMonoBehaviour <SoundManager> .Instance;
 }
Exemplo n.º 10
0
 public void _init_repair()
 {
     this._isBtnMaruUp = false;
     this.rep          = GameObject.Find("Repair Root").GetComponent <repair>();
     this.bd1          = GameObject.Find("board1_top/board").GetComponent <board>();
     this.bd2          = GameObject.Find("board2").GetComponent <board2>();
     iTween.ScaleTo(base.get_gameObject(), new Vector3(0.6f, 0.6f, 0.6f), 0f);
     this.dockSelectController = new KeyControl(0, 1, 0.4f, 0.1f);
     this.dockSelectController.setChangeValue(0f, 1f, 0f, -1f);
     this._uiOverlayButton4 = GameObject.Find("dialog4_top/dialog4/OverlayBtn4").GetComponent <UIButton>();
     EventDelegate.Add(this._uiOverlayButton4.onClick, new EventDelegate.Callback(this._onClickOverlayButton4));
     this._clickmask = GameObject.Find("click_mask").GetComponent <repair_clickmask>();
     this._bVector   = Vector3.get_one();
 }
Exemplo n.º 11
0
 public void _init_repair()
 {
     _isBtnMaruUp = false;
     rep          = GameObject.Find("Repair Root").GetComponent <repair>();
     bd1          = GameObject.Find("board1_top/board").GetComponent <board>();
     bd2          = GameObject.Find("board2").GetComponent <board2>();
     iTween.ScaleTo(base.gameObject, new Vector3(0.6f, 0.6f, 0.6f), 0f);
     dockSelectController = new KeyControl(0, 1);
     dockSelectController.setChangeValue(0f, 1f, 0f, -1f);
     _uiOverlayButton4 = GameObject.Find("dialog4_top/dialog4/OverlayBtn4").GetComponent <UIButton>();
     EventDelegate.Add(_uiOverlayButton4.onClick, _onClickOverlayButton4);
     _clickmask = GameObject.Find("click_mask").GetComponent <repair_clickmask>();
     _bVector   = Vector3.one;
 }
Exemplo n.º 12
0
 public void _init_repair()
 {
     this.rep                  = base.get_gameObject().get_transform().get_parent().get_parent().GetComponent <repair>();
     this.bd3b                 = this.rep.get_gameObject().get_transform().FindChild("board3_top/board3/Button").GetComponent <board3_btn>();
     this.bd3                  = this.rep.get_gameObject().get_transform().FindChild("board3_top/board3").GetComponent <board3>();
     this.bd2                  = GameObject.Find("board2").GetComponent <board2>();
     this.btn_obj[0]           = GameObject.Find("switch_ball");
     this.btn_obj[1]           = this.bd3b.get_gameObject();
     this.sw                   = GameObject.Find("sw01").GetComponent <sw>();
     this.dockSelectController = new KeyControl(0, 1, 0.4f, 0.1f);
     this.dockSelectController.setChangeValue(-1f, 0f, 1f, 0f);
     this.nyukyo         = false;
     this.bd3firstUpdate = true;
     this.cy             = 1;
     this._clsRepair     = this.rep.now_clsRepair();
 }
Exemplo n.º 13
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();
        }
Exemplo n.º 14
0
 public void Pressed_Button_Yes3(GameObject obj)
 {
     rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     _clickmask.unclickable_onesec();
     _isBtnMaruUp = false;
     Set_Button_Sprite(value: false);
     dockSelectController.Index = 0;
     dialog3_appear(bstat: false);
     b3 = GameObject.Find("board3").GetComponent <board3>();
     b3.board3_appear(bstat: false, isSirent: true);
     b2 = GameObject.Find("board2").GetComponent <board2>();
     b2.board2_appear(boardStart: false, isSirent: true);
     rep.all_rid_mask();
     bd1.OpenDock(selected_dock);
     rep.set_mode(1);
     TrophyUtil.Unlock_At_DockOpen();
 }
Exemplo n.º 15
0
 public void Pressed_Button_Yes3(GameObject obj)
 {
     this.rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     this._clickmask.unclickable_onesec();
     this._isBtnMaruUp = false;
     this.Set_Button_Sprite(false);
     this.dockSelectController.Index = 0;
     this.dialog3_appear(false);
     this.b3 = GameObject.Find("board3").GetComponent <board3>();
     this.b3.board3_appear(false, true);
     this.b2 = GameObject.Find("board2").GetComponent <board2>();
     this.b2.board2_appear(false, true);
     this.rep.all_rid_mask();
     this.bd1.OpenDock(this.selected_dock);
     this.rep.set_mode(1);
     TrophyUtil.Unlock_At_DockOpen();
 }
Exemplo n.º 16
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();
     }
 }
 public void Pressed_Button_Yes2(GameObject obj)
 {
     this.rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     this._clickmask.unclickable_onesec();
     this._isBtnMaruUp = false;
     this.Set_Button_Sprite(false);
     this.dockSelectController.Index = 0;
     this.shipid = this.GetShipID();
     this.dialog2_appear(false);
     this.b3 = GameObject.Find("board3").GetComponent <board3>();
     this.b3.board3_appear(false, true);
     this.b2 = GameObject.Find("board2").GetComponent <board2>();
     this.b2.board2_appear(false, true);
     this.rep.all_rid_mask();
     this.bd1.set_HS_anime(this.selected_dock, true);
     this.rep.now_clsRepair().ChangeRepairSpeed(this.selected_dock);
     this.rep.tochu_go(this.selected_dock, this.sm);
     this.rep.set_mode(1);
 }
Exemplo n.º 18
0
 public void Pressed_Button_Yes2(GameObject obj)
 {
     rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     _clickmask.unclickable_onesec();
     _isBtnMaruUp = false;
     Set_Button_Sprite(value: false);
     dockSelectController.Index = 0;
     shipid = GetShipID();
     dialog2_appear(bstat: false);
     b3 = GameObject.Find("board3").GetComponent <board3>();
     b3.board3_appear(bstat: false, isSirent: true);
     b2 = GameObject.Find("board2").GetComponent <board2>();
     b2.board2_appear(boardStart: false, isSirent: true);
     rep.all_rid_mask();
     bd1.set_HS_anime(selected_dock, stat: true);
     rep.now_clsRepair().ChangeRepairSpeed(selected_dock);
     rep.tochu_go(selected_dock, sm);
     rep.set_mode(1);
 }
Exemplo n.º 19
0
 public void _init_repair()
 {
     this.rep  = GameObject.Find("Repair Root").GetComponent <repair>();
     this.bd2  = this.rep.get_transform().FindChild("board2_top/board2").GetComponent <board2>();
     this.dia2 = GameObject.Find("dialog2").GetComponent <dialog2>();
 }
Exemplo n.º 20
0
 public void _init_repair()
 {
     rep  = GameObject.Find("Repair Root").GetComponent <repair>();
     bd2  = ((Component)rep.transform.FindChild("board2_top/board2")).GetComponent <board2>();
     dia2 = GameObject.Find("dialog2").GetComponent <dialog2>();
 }
Exemplo n.º 21
0
 public void dock_selected(int dockNo)
 {
     DockCursorBlink(dockNo);
     dockSelectController.Index = dockNo;
     for (int i = dock_count; i < _clsRepair.MapArea.NDockMax; i++)
     {
         if (_clsRepair.IsValidOpenNewDock())
         {
             int num = i;
             GameObject.Find("board1_top/board/Grid/0" + num.ToString() + "/Shutter/BGKey").GetComponent <UISprite>().spriteName = "btn_addDock";
         }
         else
         {
             int num2 = i;
             GameObject.Find("board1_top/board/Grid/0" + num2.ToString() + "/Shutter/BGKey").GetComponent <UISprite>().spriteName = "btn_addDock";
         }
     }
     if (dockNo < _clsRepair.GetDocks().Length)
     {
         if (_clsRepair.GetDockData(dockSelectController.Index).ShipId != 0)
         {
             _go_kosoku = 1;
         }
         else
         {
             _go_kosoku = 0;
         }
         if (_go_kosoku == 0)
         {
             if (_clsRepair.GetDockData(dockNo).ShipId != 0 || get_HS_anime(dockNo))
             {
                 SoundUtils.PlaySE(SEFIleInfos.CommonWrong);
                 return;
             }
             rep.set_mode(-2);
             GameObject.Find("dialog_top/dialog").GetComponent <dialog>().SetDock(dockNo);
             bd2 = GameObject.Find("board2").GetComponent <board2>();
             bd2.board2_appear(boardStart: true);
             bd2.set_touch_mode(value: true);
             rep.setmask(1, value: true);
             rep.set_mode(2);
         }
         else if (get_HS_anime(dockNo) || now_kit <= 0)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonWrong);
         }
         else if (_clsRepair.IsValidChangeRepairSpeed(dockNo))
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
             rep.set_mode(-5);
             dia2.UpdateInfo(dockNo);
             dia2.SetDock(dockNo);
             rep.setmask(3, value: true);
             dia2.dialog2_appear(bstat: true);
             rep.set_mode(5);
         }
         else
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonWrong);
         }
     }
     else
     {
         int num3 = dockNo;
         GameObject.Find("board1_top/board/Grid/0" + num3.ToString() + "/Shutter/BGKey").GetComponent <UISprite>().spriteName = "btn_addDock_on";
         if (_clsRepair.IsValidOpenNewDock())
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
             dia3.UpdateInfo(dockNo);
             dia3.dialog3_appear(bstat: true);
             rep.set_mode(6);
         }
         else
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
             CommonPopupDialog.Instance.StartPopup(Util.getPopupMessage(PopupMess.NoDockKey));
         }
     }
 }