public void OnClick() { repair component = GameObject.Find("Repair Root").GetComponent <repair>(); board component2 = GameObject.Find("board1_top/board").GetComponent <board>(); component2.DockStatus(); }
public void _init_repair() { rep = GameObject.Find("Repair Root").GetComponent <repair>(); csb = GameObject.Find("dialog_top/dialog/Banner/CommonShipBanner2").GetComponent <CommonShipBanner>(); bd3 = GameObject.Find("board3_top/board3").GetComponent <board3>(); _Button_Yes = GameObject.Find("dialog_top/dialog/btn_yes").GetComponent <UIButton>(); _Button_No = GameObject.Find("dialog_top/dialog/btn_no").GetComponent <UIButton>(); btn_obj[0] = _Button_No.gameObject; btn_obj[1] = _Button_Yes.gameObject; _uiOverlayButton = GameObject.Find("dialog_top/dialog/OverlayBtn").GetComponent <UIButton>(); EventDelegate.Add(_uiOverlayButton.onClick, _onClickOverlayButton); UIButtonMessage component = _Button_Yes.GetComponent <UIButtonMessage>(); component.target = base.gameObject; component.functionName = "Pressed_Button_Yes"; component.trigger = UIButtonMessage.Trigger.OnClick; UIButtonMessage component2 = _Button_No.GetComponent <UIButtonMessage>(); component2.target = base.gameObject; component2.functionName = "Pressed_Button_No"; component2.trigger = UIButtonMessage.Trigger.OnClick; _clsRepair = rep.now_clsRepair(); dockSelectController = new KeyControl(0, 1); dockSelectController.isLoopIndex = false; dockSelectController.setChangeValue(0f, 1f, 0f, -1f); sw = GameObject.Find("sw01").GetComponent <sw>(); sw.setSW(stat: false); _bVector = Vector3.one; }
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); }
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; }
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(); }
public void _init_repair() { this.rep = GameObject.Find("Repair Root").GetComponent <repair>(); this.csb = GameObject.Find("dialog_top/dialog/Banner/CommonShipBanner2").GetComponent <CommonShipBanner>(); this.bd3 = GameObject.Find("board3_top/board3").GetComponent <board3>(); this._Button_Yes = GameObject.Find("dialog_top/dialog/btn_yes").GetComponent <UIButton>(); this._Button_No = GameObject.Find("dialog_top/dialog/btn_no").GetComponent <UIButton>(); this.btn_obj[0] = this._Button_No.get_gameObject(); this.btn_obj[1] = this._Button_Yes.get_gameObject(); this._uiOverlayButton = GameObject.Find("dialog_top/dialog/OverlayBtn").GetComponent <UIButton>(); EventDelegate.Add(this._uiOverlayButton.onClick, new EventDelegate.Callback(this._onClickOverlayButton)); UIButtonMessage component = this._Button_Yes.GetComponent <UIButtonMessage>(); component.target = base.get_gameObject(); component.functionName = "Pressed_Button_Yes"; component.trigger = UIButtonMessage.Trigger.OnClick; UIButtonMessage component2 = this._Button_No.GetComponent <UIButtonMessage>(); component2.target = base.get_gameObject(); component2.functionName = "Pressed_Button_No"; component2.trigger = UIButtonMessage.Trigger.OnClick; this._clsRepair = this.rep.now_clsRepair(); this.dockSelectController = new KeyControl(0, 1, 0.4f, 0.1f); this.dockSelectController.isLoopIndex = false; this.dockSelectController.setChangeValue(0f, 1f, 0f, -1f); this.sw = GameObject.Find("sw01").GetComponent <sw>(); this.sw.setSW(false); this._bVector = Vector3.get_one(); }
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>(); }
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>(); }
public void _init_repair() { rep = GameObject.Find("Repair Root").GetComponent <repair>(); board_mask2 = GameObject.Find("Repair Root/board2_top_mask"); bd3 = GameObject.Find("board3").GetComponent <board3>(); board_mask2.GetComponent <UIPanel>().depth = 132; dia = GameObject.Find("dialog_top/dialog").GetComponent <dialog>(); }
public void DockMake(int MapArea, bool anime, int mode) { int num = 4; rep = GameObject.Find("Repair Root").GetComponent <repair>(); UIGrid component = GameObject.Find("board1_top/board/Grid").GetComponent <UIGrid>(); if (!_dock_exist) { for (int i = 0; i < num; i++) { GameObject[] array = dock; int num2 = i; int num3 = i; array[num2] = GameObject.Find("board1_top/board/Grid/0" + num3.ToString()); dock[i].name = string.Empty + $"{i:00}"; dock[i].gameObject.transform.localScale = Vector3.one; shutter[i].transform.localScale = Vector3.one; dock_cursor[i] = GameObject.Find("board1_top/board/Grid/" + dock[i].name + "/bg/BackGround"); GameObject[] array2 = kira_obj; int num4 = i; int num5 = i; array2[num4] = GameObject.Find("board1_top/board/Grid/0" + num5.ToString() + "/Anime_H/crane1/wire/item/Light").gameObject; GameObject[] array3 = btn_Stk; int num6 = i; int num7 = i; array3[num6] = GameObject.Find("board/Grid/0" + num7.ToString() + "/btn_Sentaku"); GameObject[] array4 = r_now; int num8 = i; int num9 = i; array4[num8] = GameObject.Find("board/Grid/0" + num9.ToString() + "/repair_now"); repair_btn[i] = GameObject.Find("board/Grid/0" + i + "/repair_now/btn_high_repair/Background"); label1_obj[i] = GameObject.Find("board/Grid/0" + i + "/repair_now/text_lv"); label2_obj[i] = GameObject.Find("board/Grid/0" + i + "/repair_now/text_day"); label3_obj[i] = GameObject.Find("board/Grid/0" + i + "/repair_now/text_ato"); dock[i].gameObject.transform.localPosition(new Vector3(0f, (float)i * -100f, 0f)); GameObject.Find("board1_top/board/Grid/" + dock[i].name + "/Anime").GetComponent <UIPanel>().depth = i + 14; GameObject.Find("board1_top/board/Grid/" + dock[i].name + "/Anime_H").GetComponent <UIPanel>().depth = i + 14; } } for (int j = 0; j < num; j++) { if (!anime) { if (mode == -1) { iTween.MoveTo(dock[j].gameObject, iTween.Hash("islocal", true, "y", (float)j * -100f + 530f, "time", 0f)); } else if (mode == j) { iTween.MoveTo(dock[j].gameObject, iTween.Hash("islocal", true, "y", (float)j * -100f + 530f, "time", 0f)); } } } component.Reposition(); _dock_exist = true; }
public void Pressed_Button_No4(GameObject obj) { this.rep.set_mode(-1); SoundUtils.PlaySE(SEFIleInfos.CommonCancel2); this._isBtnMaruUp = false; this.dialog4_appear(false); this.rep = GameObject.Find("Repair Root").GetComponent <repair>(); this.rep.setmask(3, false); this.rep.set_mode(1); }
public void _init_repair() { this._already_des = false; this._isBtnMaruUp = false; this._HOLT = false; this._HOLT_DIALOG = false; this._isStartUpDone = false; this._isBtnMaruUp = false; this.rep = base.get_gameObject().get_transform().get_parent().get_parent().GetComponent <repair>(); }
public void _init_repair() { _already_des = false; _isBtnMaruUp = false; _HOLT = false; _HOLT_DIALOG = false; _isStartUpDone = false; _isBtnMaruUp = false; rep = ((Component)base.gameObject.transform.parent.parent).GetComponent <repair>(); }
private void OnClick() { if (!bd2.get_board2_anime()) { rep = GameObject.Find("Repair Root").GetComponent <repair>(); rep.set_mode(-1); bd2.board2_appear(boardStart: false); rep.setmask(1, value: false); rep.set_mode(1); } }
public void onHighAnimeDone(int dock) { rep = GameObject.Find("Repair Root").GetComponent <repair>(); int mode = rep.now_mode(); rep.set_mode(-1); Debug.Log(dock + "番が入渠を終えた。"); bd1.set_HS_anime(dock, stat: false); bd1.set_anime(dock, stat: false); rep.set_mode(mode); }
private void OnClick() { if (this.bd2.get_board2_anime()) { return; } this.rep = GameObject.Find("Repair Root").GetComponent <repair>(); this.rep.set_mode(-1); this.bd2.board2_appear(false); this.rep.setmask(1, false); this.rep.set_mode(1); }
public void Pressed_Button_No3(GameObject obj) { this.rep.set_mode(-1); SoundUtils.PlaySE(SEFIleInfos.CommonCancel2); this._clickmask.unclickable_sec(0.3f); this._isBtnMaruUp = false; this.Set_Button_Sprite(true); this.dialog3_appear(false); this.rep = GameObject.Find("Repair Root").GetComponent <repair>(); this.rep.setmask(3, false); this.rep.set_mode(1); }
public void _init_repair() { this.sw_enable = true; this.sw_stat = false; this._fairy_onoff = false; this.sw_ball = GameObject.Find("sw_mini/switch_ball").GetComponent <UISprite>(); this.sw_base = GameObject.Find("sw_mini/switch_use").GetComponent <UISprite>(); this._Ani = GameObject.Find("sw_mini").GetComponent <Animation>(); this._zzz = GameObject.Find("SleepPar"); this.rep = GameObject.Find("Repair Root").GetComponent <repair>(); this.bd3 = GameObject.Find("board3_top/board3").GetComponent <board3>(); }
public void Pressed_Button_No2(GameObject obj) { rep.set_mode(-1); _clickmask.unclickable_sec(0.3f); SoundUtils.PlaySE(SEFIleInfos.CommonCancel2); _isBtnMaruUp = false; Set_Button_Sprite(value: true); dialog2_appear(bstat: false); rep = GameObject.Find("Repair Root").GetComponent <repair>(); rep.setmask(3, value: false); rep.set_mode(1); }
private void OnDestroy() { key = null; key2 = null; _rep = null; SpriteButtonX = null; SpriteButtonL = null; SpriteButtonShikaku = null; SpriteButtonSankaku = null; _uiLabelX = null; model = null; _uil = null; }
public void StartUp() { 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.dia = GameObject.Find("dialog_top/dialog").GetComponent <dialog>(); this.btn_obj[0] = GameObject.Find("switch_ball"); this.btn_obj[1] = this.bd3b.get_gameObject(); this.dockSelectController = new KeyControl(0, 1, 0.4f, 0.1f); this.dockSelectController.setChangeValue(-1f, 0f, 1f, 0f); this.nyukyo = false; this._clsRepair = this.rep.now_clsRepair(); }
private void OnDestroy() { this.key = null; this.key2 = null; this._rep = null; this.SpriteButtonX = null; this.SpriteButtonL = null; this.SpriteButtonShikaku = null; this.SpriteButtonSankaku = null; this._uiLabelX = null; this.model = null; this._uil = null; }
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; }
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; }
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(); }
private void OnClick() { Debug.Log("mask2に触られた。"); if (!dia.get_dialog_anime() && !bd3.get_board3_anime()) { rep.set_mode(-2); bd3.board3_appear(bstat: false, isSirent: true); sw = GameObject.Find("board3/sw01").GetComponent <sw>(); sw.setSW(stat: false); bd3.Cancelled(NotChangeMode: false); rep = GameObject.Find("Repair Root").GetComponent <repair>(); rep.setmask(2, value: false); rep.set_mode(2); } }
private void OnClick() { Debug.Log("mask2に触られた。"); if (this.dia.get_dialog_anime() || this.bd3.get_board3_anime()) { return; } this.rep.set_mode(-2); this.bd3.board3_appear(false, true); this.sw = GameObject.Find("board3/sw01").GetComponent <sw>(); this.sw.setSW(false); this.bd3.Cancelled(false); this.rep = GameObject.Find("Repair Root").GetComponent <repair>(); this.rep.setmask(2, false); this.rep.set_mode(2); }
private void Awake() { base.get_transform().localPositionY(UIHowToRepair.HidePos.y); this.model = new SettingModel(); this.key2 = new KeyControl(0, 1, 0.4f, 0.1f); this.key2.setChangeValue(0f, 0f, 0f, 0f); this._rep = base.get_gameObject().get_transform().get_parent().GetComponent <repair>(); this.now_mode = 1; this.SpriteButtonX.get_transform().set_localScale(Vector3.get_zero()); this._uil = this.SpriteButtonL.get_transform().FindChild("Label").GetComponent <UILabel>(); this._uil.text = "提督コマンド"; Util.FindParentToChild <UILabel>(ref this._uiLabelX, this.SpriteButtonX.get_transform(), "Label"); this._setButtonX("戻る", 429f); this.SpriteButtonShikaku.get_transform().set_localScale(Vector3.get_zero()); this.SpriteButtonSankaku.get_transform().set_localScale(Vector3.get_zero()); }
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(); }
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(); }