protected void BackMaskEL(GameObject obj) { if (!isEnd) { isControl = false; detailManager.Close(); SoundUtils.PlaySE(SEFIleInfos.CommonRemove); changeState = "top"; isEnd = true; } }
public void ChangeButtonEL(GameObject obj) { if (isEnd || !isControl) { return; } int bannerIndex = TaskOrganizeTop.BannerIndex; int memId = ship.MemId; bool flag = OrganizeTaskManager.Instance.GetLogicManager().ChangeOrganize(OrganizeTaskManager.Instance.GetTopTask().GetDeckID(), bannerIndex - 1, memId); OrganizeTaskManager.Instance.GetListTask().UpdateList(); if (!flag) { Debug.Log("EROOR: ChangeOrganize"); return; } DifficultKind difficulty = OrganizeTaskManager.logicManager.UserInfo.Difficulty; isControl = false; OrganizeTaskManager.Instance.GetTopTask().isControl = false; detailManager.Close(); SoundUtils.PlaySE(SEFIleInfos.SE_003); OrganizeTaskManager.Instance.GetListTask().BackListEL(null, isForce: true); OrganizeTaskManager.Instance.GetTopTask().UpdateAllBannerByChangeShip(); ShipUtils.PlayShipVoice(ship, 13); SingletonMonoBehaviour <UIShortCutMenu> .Instance.setDisable(); setChangePhase("top"); if (OrganizeTaskManager.Instance.GetType() != typeof(EscortOrganizeTaskManager)) { TutorialModel tutorial = OrganizeTaskManager.logicManager.UserInfo.Tutorial; if (tutorial.GetStep() == 3 && !tutorial.GetStepTutorialFlg(4)) { tutorial.SetStepTutorialFlg(4); CommonPopupDialog.Instance.StartPopup("「艦隊を編成!」 達成"); SoundUtils.PlaySE(SEFIleInfos.SE_012); } } }