public void SetCustomMode() { dialogKeyController = App.OnlyController; dialogKeyController.IsRun = false; ((Component)BauxiSuccess).transform.localPositionX(1000f); ((Component)BauxiField).transform.localPositionX(1000f); key = new KeyControl(0, 5); key.isLoopIndex = false; key.setChangeValue(-2f, 1f, 2f, -1f); App.OnlyController = key; ((Component)BauxiSuccess).transform.parent.SetActive(isActive: true); ModeProcessor = GetComponent <ModeProcessor>(); ModeProcessor.addMode("Top", TopModeRun, TopModeEnter, TopModeExit); ModeProcessor.addMode("SupplyConfirm", SupplyConfirmModeRun, SupplyConfirmModeEnter, SupplyConfirmModeExit); ModeProcessor.addMode("RepairConfirm", RepairConfirmModeRun, RepairConfirmModeEnter, RepairConfirmModeExit); ModeProcessor.addMode("RepairKitConfirm", RepairKitConfirmModeRun, RepairKitConfirmModeEnter, RepairKitConfirmModeExit); ModeProcessor.addMode("OrganizeDetail", OrganizeDetailModeRun, OrganizeDetailModeEnter, OrganizeDetailModeExit); ModeProcessor.addMode("OrganizeList", OrganizeListModeRun, OrganizeListModeEnter, OrganizeListModeExit); ModeProcessor.addMode("OrganizeListDetail", OrganizeListDetailModeRun, OrganizeListDetailModeEnter, OrganizeListDetailModeExit); FocusBanner = ShipStates[0]; UIRebellionOrgaizeShipBanner[] shipStates = ShipStates; foreach (UIRebellionOrgaizeShipBanner uIRebellionOrgaizeShipBanner in shipStates) { uIRebellionOrgaizeShipBanner.SetOnClick(OnClickBanner); } BannerFocusAnim(isEnable: true); OrganizeMng = new OrganizeManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId); StrategyTopTaskManager.Instance.setActiveStrategy(isActive: false); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; SingletonMonoBehaviour <Live2DModel> .Instance.Disable(); ListParent.SetBackButtonEnable(isEnable: false); StrategyTopTaskManager.Instance.UIModel.HowToStrategy.isForceShow(); isInitialize = false; }
protected override void Start() { if (App.GetTitleManager() == null) { App.SetTitleManager(new TitleManager()); } Message.alpha = 0f; isInherit = true; ModeProc = GetComponent <ModeProcessor>(); ModeProc.addMode(Mode.DoLoadSelect.ToString(), DoLoadSelectRun, DoLoadSelectEnter, DoLoadSelectExit); ModeProc.addMode(Mode.DifficultySelect.ToString(), DifficultySelectRun, DifficultySelectEnter, DifficultySelectExit); }
protected override void Start() { if (App.GetTitleManager() == null) { App.SetTitleManager(new TitleManager()); } this.Message.alpha = 0f; this.isInherit = true; this.ModeProc = base.GetComponent <ModeProcessor>(); this.ModeProc.addMode(TaskInheritLoadSelect.Mode.DoLoadSelect.ToString(), new ModeProc.Mode.ModeRun(this.DoLoadSelectRun), new ModeProc.Mode.ModeChange(this.DoLoadSelectEnter), new ModeProc.Mode.ModeChange(this.DoLoadSelectExit)); this.ModeProc.addMode(TaskInheritLoadSelect.Mode.DifficultySelect.ToString(), new ModeProc.Mode.ModeRun(this.DifficultySelectRun), new ModeProc.Mode.ModeChange(this.DifficultySelectEnter), new ModeProc.Mode.ModeChange(this.DifficultySelectExit)); }
private void OnDestroy() { ModeProc = null; SaveSelect = null; TypeSelect = null; ConfirmSelect = null; SaveSelectBtnMng = null; ConfirmSelectBtnMng = null; TypeSelectBtnMng = null; key = null; ShipTexture = null; ShipNum = null; manager = null; }
protected override void Start() { SingletonMonoBehaviour <SoundManager> .Instance.StopBGM(); manager = new EndingManager(); SaveSelect.alpha = 0f; ConfirmSelect.alpha = 0f; ModeProc = GetComponent <ModeProcessor>(); ModeProc.addMode(Mode.AdmiralRankJudge.ToString(), AdmiralRankJudgeRun, AdmiralRankJudgeEnter, AdmiralRankJudgeExit); ModeProc.addMode(Mode.DoSaveSelect.ToString(), DoSaveSelectRun, DoSaveSelectEnter, DoSaveSelectExit); ModeProc.addMode(Mode.InheritTypeSelect.ToString(), InheritTypeSelectRun, InheritTypeSelectEnter, InheritTypeSelectExit); ModeProc.addMode(Mode.Confirm.ToString(), ConfirmRun, ConfirmEnter, ConfirmExit); ShipNum.textInt = manager.GetTakeoverShipCountMax(); }
private void OnDestroy() { this.ModeProc = null; this.SaveSelect = null; this.TypeSelect = null; this.ConfirmSelect = null; this.SaveSelectBtnMng = null; this.ConfirmSelectBtnMng = null; this.TypeSelectBtnMng = null; this.key = null; this.ShipTexture = null; this.ShipNum = null; this.manager = null; }
protected override void Start() { SingletonMonoBehaviour <SoundManager> .Instance.StopBGM(); this.manager = new EndingManager(); this.SaveSelect.alpha = 0f; this.ConfirmSelect.alpha = 0f; this.ModeProc = base.GetComponent <ModeProcessor>(); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.AdmiralRankJudge.ToString(), new ModeProc.Mode.ModeRun(this.AdmiralRankJudgeRun), new ModeProc.Mode.ModeChange(this.AdmiralRankJudgeEnter), new ModeProc.Mode.ModeChange(this.AdmiralRankJudgeExit)); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.DoSaveSelect.ToString(), new ModeProc.Mode.ModeRun(this.DoSaveSelectRun), new ModeProc.Mode.ModeChange(this.DoSaveSelectEnter), new ModeProc.Mode.ModeChange(this.DoSaveSelectExit)); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.InheritTypeSelect.ToString(), new ModeProc.Mode.ModeRun(this.InheritTypeSelectRun), new ModeProc.Mode.ModeChange(this.InheritTypeSelectEnter), new ModeProc.Mode.ModeChange(this.InheritTypeSelectExit)); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.Confirm.ToString(), new ModeProc.Mode.ModeRun(this.ConfirmRun), new ModeProc.Mode.ModeChange(this.ConfirmEnter), new ModeProc.Mode.ModeChange(this.ConfirmExit)); this.ShipNum.textInt = this.manager.GetTakeoverShipCountMax(); }
private void OnDestroy() { ShipStates = null; key = null; FocusBanner = null; SupplyMng = null; RepairMng = null; OrganizeMng = null; ModeProcessor = null; dialogKeyController = null; repairDockModel = null; Prefab_RepairConfim = null; repairConfim = null; Prefab_RepairKitConfim = null; repairKitConfim = null; Prefab_OrganizeDetailMng = null; Prefab_OrganizeList = null; OrganizeDetailMng = null; DeckNoIcon = null; DeckNoLabel = null; ListSelectShipModel = null; CurrentDeck = null; }
public void SetCustomMode() { this.dialogKeyController = App.OnlyController; this.dialogKeyController.IsRun = false; this.BauxiSuccess.get_transform().localPositionX(1000f); this.BauxiField.get_transform().localPositionX(1000f); this.key = new KeyControl(0, 5, 0.4f, 0.1f); this.key.isLoopIndex = false; this.key.setChangeValue(-2f, 1f, 2f, -1f); App.OnlyController = this.key; this.BauxiSuccess.get_transform().get_parent().SetActive(true); this.ModeProcessor = base.GetComponent <ModeProcessor>(); this.ModeProcessor.addMode("Top", new ModeProc.Mode.ModeRun(this.TopModeRun), new ModeProc.Mode.ModeChange(this.TopModeEnter), new ModeProc.Mode.ModeChange(this.TopModeExit)); this.ModeProcessor.addMode("SupplyConfirm", new ModeProc.Mode.ModeRun(this.SupplyConfirmModeRun), new ModeProc.Mode.ModeChange(this.SupplyConfirmModeEnter), new ModeProc.Mode.ModeChange(this.SupplyConfirmModeExit)); this.ModeProcessor.addMode("RepairConfirm", new ModeProc.Mode.ModeRun(this.RepairConfirmModeRun), new ModeProc.Mode.ModeChange(this.RepairConfirmModeEnter), new ModeProc.Mode.ModeChange(this.RepairConfirmModeExit)); this.ModeProcessor.addMode("RepairKitConfirm", new ModeProc.Mode.ModeRun(this.RepairKitConfirmModeRun), new ModeProc.Mode.ModeChange(this.RepairKitConfirmModeEnter), new ModeProc.Mode.ModeChange(this.RepairKitConfirmModeExit)); this.ModeProcessor.addMode("OrganizeDetail", new ModeProc.Mode.ModeRun(this.OrganizeDetailModeRun), new ModeProc.Mode.ModeChange(this.OrganizeDetailModeEnter), new ModeProc.Mode.ModeChange(this.OrganizeDetailModeExit)); this.ModeProcessor.addMode("OrganizeList", new ModeProc.Mode.ModeRun(this.OrganizeListModeRun), new ModeProc.Mode.ModeChange(this.OrganizeListModeEnter), new ModeProc.Mode.ModeChange(this.OrganizeListModeExit)); this.ModeProcessor.addMode("OrganizeListDetail", new ModeProc.Mode.ModeRun(this.OrganizeListDetailModeRun), new ModeProc.Mode.ModeChange(this.OrganizeListDetailModeEnter), new ModeProc.Mode.ModeChange(this.OrganizeListDetailModeExit)); this.FocusBanner = this.ShipStates[0]; UIRebellionOrgaizeShipBanner[] shipStates = this.ShipStates; for (int i = 0; i < shipStates.Length; i++) { UIRebellionOrgaizeShipBanner uIRebellionOrgaizeShipBanner = shipStates[i]; uIRebellionOrgaizeShipBanner.SetOnClick(new Action <int>(this.OnClickBanner)); } this.BannerFocusAnim(true); this.OrganizeMng = new OrganizeManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId); StrategyTopTaskManager.Instance.setActiveStrategy(false); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; SingletonMonoBehaviour <Live2DModel> .Instance.Disable(); this.ListParent.SetBackButtonEnable(false); StrategyTopTaskManager.Instance.UIModel.HowToStrategy.isForceShow(); this.isInitialize = false; }