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