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)); } } }