Пример #1
0
 protected override bool Init()
 {
     if (!isKeyControlDisable)
     {
         keyController.IsRun = true;
     }
     IndexChange = 0;
     swipeWait   = false;
     SwipeEvent  = ((Component)CommandMenu.transform.FindChild("AreaInfoBG")).GetComponent <UIDisplaySwipeEventRegion>();
     SwipeEvent.SetOnSwipeActionJudgeCallBack(CheckSwipe);
     LogicMng = StrategyTopTaskManager.GetLogicManager();
     CommandMenu.SetActive(isActive: true);
     Util.FindParentToChild(ref CommandMenu.Menus, CommandMenu.transform, "Menus");
     sttm        = StrategyTaskManager.GetStrategyTop();
     areaID      = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID;
     areaModel   = StrategyTopTaskManager.GetLogicManager().Area[areaID];
     sceneChange = true;
     DeckEnableCheck();
     CommandMenu.MenuEnter((int)currentMenu);
     keyController.Index = (int)currentMenu;
     KeyControlManager.Instance.KeyController = keyController;
     isInfoOpenEnable = true;
     if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Hide();
     }
     return(true);
 }
 protected override bool Init()
 {
     if (!this.isKeyControlDisable)
     {
         this.keyController.IsRun = true;
     }
     this.IndexChange = 0;
     this.swipeWait   = false;
     this.SwipeEvent  = this.CommandMenu.get_transform().FindChild("AreaInfoBG").GetComponent <UIDisplaySwipeEventRegion>();
     this.SwipeEvent.SetOnSwipeActionJudgeCallBack(new UIDisplaySwipeEventRegion.SwipeJudgeDelegate(this.CheckSwipe));
     this.LogicMng = StrategyTopTaskManager.GetLogicManager();
     this.CommandMenu.SetActive(true);
     Util.FindParentToChild(ref this.CommandMenu.Menus, this.CommandMenu.get_transform(), "Menus");
     this.sttm        = StrategyTaskManager.GetStrategyTop();
     this.areaID      = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID;
     this.areaModel   = StrategyTopTaskManager.GetLogicManager().Area.get_Item(this.areaID);
     this.sceneChange = true;
     this.DeckEnableCheck();
     this.CommandMenu.MenuEnter((int)this.currentMenu);
     this.keyController.Index = (int)this.currentMenu;
     KeyControlManager.Instance.KeyController = this.keyController;
     this.isInfoOpenEnable = true;
     if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Hide();
     }
     return(true);
 }
Пример #3
0
 public void SearchAndChangeDeck(bool isNext, bool isSeachLocalArea)
 {
     if (StrategyTopTaskManager.GetLogicManager().UserInfo.DeckCount > 1)
     {
         int id;
         if (isNext)
         {
             id = StrategyTopTaskManager.Instance.UIModel.UIMapManager.ShipIconManager.getNextDeck(DeckSelectController.prevIndex + 1, isSeachLocalArea).Id;
             DeckSelectController.SilentChangeIndex(id - 1);
         }
         else
         {
             id = StrategyTopTaskManager.Instance.UIModel.UIMapManager.ShipIconManager.getPrevDeck(DeckSelectController.prevIndex + 1, isSeachLocalArea).Id;
             DeckSelectController.SilentChangeIndex(id - 1);
         }
         prevDeckID = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID;
         if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck == LogicMng.UserInfo.GetDeck(id))
         {
             return;
         }
         SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = LogicMng.UserInfo.GetDeck(id);
         shipIconManager.changeFocus();
     }
     areaManager.UpdateSelectArea(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID);
 }
Пример #4
0
 private void GotoRepairConfirm()
 {
     if (!CheckDeckState())
     {
         return;
     }
     if (FocusBanner.ShipModel.IsTettaiBling())
     {
         CommonPopupDialog.Instance.StartPopup("撤退中の艦は入渠出来ません");
     }
     else if (FocusBanner.ShipModel.IsInRepair())
     {
         if (StrategyTopTaskManager.GetLogicManager().Material.RepairKit > 0)
         {
             ModeProcessor.ChangeMode(3);
         }
         else
         {
             CommonPopupDialog.Instance.StartPopup("高速修復材を持っていません");
         }
     }
     else if (IsValidRepair())
     {
         ModeProcessor.ChangeMode(2);
     }
 }
 public void sortAreaShipIcon(int targetAreaID, bool isMoveCharacter, bool isUpdateOrganizeMessage)
 {
     DeckModel[] enableDecks = getEnableDecks(StrategyTopTaskManager.GetLogicManager().UserInfo.GetDecksFromArea(targetAreaID));
     for (int i = 0; i < enableDecks.Length; i++)
     {
         int       num       = enableDecks[i].Id - 1;
         Hashtable hashtable = new Hashtable();
         hashtable.Add("position", GetShipIconPosition(targetAreaID, i));
         hashtable.Add("time", 2f);
         hashtable.Add("easetype", iTween.EaseType.linear);
         if (i == enableDecks.Length - 1)
         {
             hashtable.Add("oncomplete", "OnCompleteMove");
             hashtable.Add("oncompletetarget", base.gameObject);
             int id = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id;
             hashtable.Add("oncompleteparams", id);
             if (isMoveCharacter)
             {
                 CharacterMove = delegate
                 {
                     StrategyTopTaskManager.GetSailSelect().moveCharacterScreen(isEnter: true, null);
                 };
             }
         }
         iTween.MoveTo(allShipIcons[num].gameObject, hashtable);
         allShipIcons[num].setColliderEnable(isEnable: false);
     }
     if (isUpdateOrganizeMessage)
     {
         OrganizeMessage.UpdateVisible();
     }
 }
Пример #6
0
        private void UpdateDayLabel()
        {
            TurnString datetimeString = StrategyTopTaskManager.GetLogicManager().DatetimeString;

            Year.text  = datetimeString.Year + "の年";
            Month.text = datetimeString.Month;
            Day.text   = datetimeString.Day;
        }
Пример #7
0
        public Vector3 GetShipIconPosition(int AreaID, int No)
        {
            Vector3 position = StrategyTopTaskManager.Instance.TileManager.Tiles[AreaID].get_transform().get_position();
            int     num      = StrategyShipManager.getEnableDecks(StrategyTopTaskManager.GetLogicManager().Area.get_Item(AreaID).GetDecks()).Length;
            float   num2     = 0.25f * this.shipNoPosList.get_Item(num - 1)[No, 0];
            float   num3     = 0.25f * this.shipNoPosList.get_Item(num - 1)[No, 1];

            return(position + new Vector3(num2, num3, 0f));
        }
Пример #8
0
 private void UpdateNum()
 {
     this.MaterialsNumInt[0] = StrategyTopTaskManager.GetLogicManager().Material.Fuel;
     this.MaterialsNumInt[1] = StrategyTopTaskManager.GetLogicManager().Material.Steel;
     this.MaterialsNumInt[2] = StrategyTopTaskManager.GetLogicManager().Material.Ammo;
     this.MaterialsNumInt[3] = StrategyTopTaskManager.GetLogicManager().Material.Baux;
     this.MaterialsNumInt[4] = StrategyTopTaskManager.GetLogicManager().Material.Devkit;
     this.MaterialsNumInt[5] = StrategyTopTaskManager.GetLogicManager().Material.RepairKit;
 }
        public Vector3 GetShipIconPosition(int AreaID, int No)
        {
            Vector3 position = StrategyTopTaskManager.Instance.TileManager.Tiles[AreaID].transform.position;
            int     num      = getEnableDecks(StrategyTopTaskManager.GetLogicManager().Area[AreaID].GetDecks()).Length;
            float   x        = 0.25f * shipNoPosList[num - 1][No, 0];
            float   y        = 0.25f * shipNoPosList[num - 1][No, 1];

            return(position + new Vector3(x, y, 0f));
        }
Пример #10
0
 public void ChangeFocusTile(int areaID, bool immediate = false)
 {
     if (tileManager.FocusTile == null || areaID != tileManager.FocusTile.areaID)
     {
         tileManager.changeFocus(areaID);
         mapCamera.MoveToTargetTile(areaID, immediate);
         sailKeyController.Index = tileManager.FocusTile.areaID;
         StrategyTopTaskManager.Instance.GetAreaMng().FocusAreaModel = StrategyTopTaskManager.GetLogicManager().Area[areaID];
     }
 }
Пример #11
0
 private void makeOpenAreaIdArray(List <int> openAreaID)
 {
     for (int i = 1; i < StrategyTopTaskManager.GetLogicManager().Area.Count; i++)
     {
         if (StrategyTopTaskManager.GetLogicManager().Area[i].IsOpen())
         {
             openAreaID.Add(i);
         }
     }
 }
Пример #12
0
 public IEnumerator moveAreaAllShip(int areaID, bool isWait)
 {
     getEnableDecks(StrategyTopTaskManager.GetLogicManager().UserInfo.GetDecksFromArea(areaID));
     sortAreaShipIcon(1, isMoveCharacter: false, isUpdateOrganizeMessage: false);
     sortAreaShipIcon(areaID, isMoveCharacter: false, isUpdateOrganizeMessage: true);
     if (isWait)
     {
         yield return(new WaitForSeconds(2f));
     }
 }
Пример #13
0
 private void ShipSelect()
 {
     if (key.IsRightDown() || key.IsLeftDown())
     {
         int num = Convert.ToInt32(buttons[0].labels[0].text);
         num = ((!key.IsRightDown()) ? ((int)Util.RangeValue(num - 1 * mag, 0f, 500f)) : ((int)Util.RangeValue(num + 1 * mag, 0f, 500f)));
         buttons[0].labels[0].textInt = num;
         ship = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(num);
         ShipInit();
     }
 }
Пример #14
0
 private void Start()
 {
     debugMod = new Debug_Mod();
     UserInfo = StrategyTopTaskManager.GetLogicManager().UserInfo;
     ButtonManager.setButtonDelegate(Util.CreateEventDelegate(this, "OnPushPreset", null));
     TaskStrategyDebug.isControl = true;
     presetDataManager           = new PresetDataManager();
     NextMemID     = 2;
     ShipParamList = new List <Entity_PresetShip.Param>();
     presetDataManager.GetPresetShipParam("初期艦").MemID = 1;
 }
Пример #15
0
 private void DeployTanker()
 {
     StrategyTopTaskManager.CreateLogicManager();
     for (int i = 1; i < 18; i++)
     {
         if (StrategyTopTaskManager.GetLogicManager().Area[i].IsOpen())
         {
             StrategyTopTaskManager.GetLogicManager().Deploy(i, 5, new EscortDeckManager(i));
         }
     }
 }
 public bool OnMoveDeside()
 {
     if (StrategyTopTaskManager.GetLogicManager().Area[currentAreaID].NeighboringAreaIDs.Exists((int x) => x == StrategyAreaManager.sailKeyController.Index) && !shipIconManager.isShipMoving)
     {
         StrategyTopTaskManager.Instance.TileManager.ChangeTileColorMove(null);
         MoveStart();
         SoundUtils.PlaySE(SEFIleInfos.StrategyShipMove);
         return(false);
     }
     return(true);
 }
Пример #17
0
 public void init()
 {
     tileManager.Init();
     tileManager.setAreaModels(StrategyTopTaskManager.GetLogicManager());
     makeSailSelectController();
     if (StrategyTopTaskManager.GetLogicManager().IsOpenedLastAreaAtLeastOnce())
     {
         Red_Sea.SetActive(true);
         Red_Sea.GetComponent <UIPanel>().alpha = 1f;
     }
 }
Пример #18
0
 private void Start()
 {
     BtnManager.setFocus(0);
     buttons[0].Act = ShipSelect;
     buttons[1].Act = ShipLevel;
     buttons[2].Act = ShipStrength;
     key            = new KeyControl();
     mag            = 1;
     ship           = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(1);
     ShipInit();
     debugMod = new Debug_Mod();
 }
Пример #19
0
 private void Start()
 {
     this.BtnManager.setFocus(0);
     this.buttons[0].Act = new Action(this.ShipSelect);
     this.buttons[1].Act = new Action(this.ShipLevel);
     this.buttons[2].Act = new Action(this.ShipStrength);
     this.key            = new KeyControl(0, 0, 0.4f, 0.1f);
     this.mag            = 1;
     this.ship           = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(1);
     this.ShipInit();
     this.debugMod = new Debug_Mod();
 }
        private bool OnStartSortieStage()
        {
            mKeyController.IsRun = false;
            mKeyController.ClearKeyAll();
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
            SingletonMonoBehaviour <Live2DModel> .Instance.forceStop();

            SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = false;
            SingletonMonoBehaviour <NowLoadingAnimation> .Instance.isNowLoadingAnimation = true;
            SoundUtils.PlaySE(SEFIleInfos.CommonEnter3);
            DebugUtils.SLog("OnStartSortieStage1");
            mStageConfirm.Hide();
            DebugUtils.SLog("OnStartSortieStage2");
            DOTween.Sequence().Append(mRouletteSelector.transform.DOLocalMoveY(0f, 0.4f).SetEase(Ease.OutBounce)).Join(mRouletteSelector.transform.DOScale(new Vector3(1.6f, 1.6f, 1f), 0.3f));
            ShipUtils.PlayShipVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetFlagShip(), App.rand.Next(13, 15));
            DebugUtils.SLog("OnStartSortieStage3");
            this.DelayAction(0.5f, delegate
            {
                DebugUtils.SLog("OnStartSortieStage mStageConfirm.ClickAnimation");
                MapModel mMapModel = mStageConfirm.mMapModel;
                RetentionData.SetData(new Hashtable
                {
                    {
                        "sortieMapManager",
                        mSortieManager.GoSortie(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id, mMapModel.MstId)
                    },
                    {
                        "rootType",
                        0
                    },
                    {
                        "shipRecoveryType",
                        ShipRecoveryType.None
                    },
                    {
                        "escape",
                        false
                    }
                });
                UnityEngine.Object.Destroy(SingletonMonoBehaviour <PortObjectManager> .Instance.gameObject);
                UnityEngine.Object.Destroy(GameObject.Find("Information Root"));
                UnityEngine.Object.Destroy(GameObject.Find("OverView"));
                StartCoroutine(AsyncLoad());
                MapTransitionCutManager component = Util.Instantiate(mPrefab_MapTransitionCutManager.gameObject, base.transform.root.Find("Map Root").gameObject).GetComponent <MapTransitionCutManager>();
                component.transform.localPosition = mStrategyTopTaskManager.strategyCamera.transform.localPosition + new Vector3(-26.4f, -43f, 496.4f);
                component.Initialize(mMapModel, mAsyncOperation);
                TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial;
                SingletonMonoBehaviour <AppInformation> .Instance.NextLoadType = AppInformation.LoadType.Ship;
                DebugUtils.SLog("OnStartSortieStage mStageConfirm.ClickAnimation END");
            });
            DebugUtils.SLog("OnStartSortieStage4");
            return(false);
        }
Пример #21
0
        private IEnumerator UserPreAction()
        {
            userPreAction = StrategyTopTaskManager.GetLogicManager().GetResult_UserPreActionPhase();
            MissionResultModel[] missionResultModels = userPreAction.MissionResults;
            if (missionResultModels.Length != 0)
            {
                ShipUtils.PlayShipVoice(LogicMng.UserInfo.GetDeck(1).GetFlagShip(), 7);
                KeyControl managerKeyController = KeyControlManager.Instance.KeyController;
                for (int i = 0; i < missionResultModels.Length; i++)
                {
                    finished = false;
                    GameObject ReturnAnim           = Util.InstantiateGameObject(ReturnMissionAnim, GameObject.Find("OverView").transform);
                    UIMissionStateChangedCutin Anim = ReturnAnim.GetComponent <UIMissionStateChangedCutin>();
                    Anim.Initialize(LogicMng.UserInfo.GetDeck(userPreAction.MissionResults[i].DeckID));
                    Anim.PlayFinishedCutin(delegate
                    {
                        throw new NotImplementedException("なにこれ");
                        // _003CUserPreAction_003Ec__Iterator186 _003CUserPreAction_003Ec__Iterator = this;


                        UnityEngine.Object.Destroy(Anim.gameObject);
                        UserInterfaceStrategyResult userInterfaceStrategyResult = UnityEngine.Object.Instantiate(this.mPrefab_UserInterfaceStrategyResult);
                        userInterfaceStrategyResult.transform.positionX(5000f);
                        MissionResultModel missionResultModel = missionResultModels[i];
                        KeyControl keyController = new KeyControl();
                        userInterfaceStrategyResult.Initialize(StrategyTopTaskManager.GetLogicManager(), missionResultModel, keyController, delegate
                        {
                            StrategyTopTaskManager.Instance.UIModel.Character.setState(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
                            StrategyTopTaskManager.Instance.UIModel.Character.ChangeCharacter();
                            StrategyTopTaskManager.Instance.UIModel.UIMapManager.ShipIconManager.setShipIconsState();
                            userInterfaceStrategyResult.FadeOut(delegate
                            {
                                UnityEngine.Object.Destroy(userInterfaceStrategyResult.gameObject);
                                finished = true;
                            });
                        });
                        userInterfaceStrategyResult.Play();
                    });
                    while (!finished)
                    {
                        yield return(null);
                    }
                }
                KeyControlManager.Instance.KeyController = managerKeyController;
                bool isShow = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.MissionState == MissionStates.NONE;
                StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenIn(null, isShow);
            }
            else
            {
                finished = true;
            }
            yield return(null);
        }
Пример #22
0
 private void EnemyResult(EnemyActionPhaseResultModel enemyResult)
 {
     if (StrategyRebellionTaskManager.RebellionForceDebug)
     {
         finished = true;
     }
     else if (StrategyTopTaskManager.GetLogicManager().GetRebellionAreaList().Count != 0)
     {
         isRebellion = true;
         StrategyRebellionTaskManager.checkRebellionArea();
     }
 }
Пример #23
0
 public void DebugTurnEndAuto()
 {
     TurnEndFinish = true;
     isDebug       = true;
     isRebellion   = false;
     StrategyTopTaskManager.Instance.GetInfoMng().updateInfoPanel(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId);
     StrategyTopTaskManager.GetLogicManager().GetResult_UserActionPhase();
     StrategyTopTaskManager.GetLogicManager().GetResult_EnemyPreActionPhase();
     StrategyTopTaskManager.GetLogicManager().GetResult_EnemyActionPhase();
     TurnResult = StrategyTopTaskManager.GetLogicManager().GetResult_Turn();
     StrategyTopTaskManager.GetLogicManager().GetResult_UserPreActionPhase();
 }
Пример #24
0
 public void GotoOrganize()
 {
     if (base.isRun)
     {
         DeckModel deckModel = StrategyTopTaskManager.GetLogicManager().UserInfo.GetDecks().FirstOrDefault((DeckModel x) => x.Count == 0);
         if (deckModel != null)
         {
             SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = deckModel;
             SingletonMonoBehaviour <PortObjectManager> .Instance.InstantiateScene(Generics.Scene.Organize);
         }
     }
 }
        private bool validCheck(TaskStrategyCommandMenu.MENU_NAME menuName)
        {
            DeckModel            currentDeck = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck;
            List <IsGoCondition> list        = new List <IsGoCondition>();

            switch (menuName)
            {
            case TaskStrategyCommandMenu.MENU_NAME.SALLY:
                list = currentDeck.IsValidSortie();
                break;

            case TaskStrategyCommandMenu.MENU_NAME.MOVE:
                list = currentDeck.IsValidMove();
                break;

            case TaskStrategyCommandMenu.MENU_NAME.DEPLOY:
            {
                int num = StrategyTopTaskManager.Instance.TileManager.FocusTile.areaID;
                if (num == 15 || num == 16 || num == 17)
                {
                    CommonPopupDialog.Instance.StartPopup("この海域には配備出来ません");
                    return(false);
                }
                break;
            }

            case TaskStrategyCommandMenu.MENU_NAME.ENSEI:
                list = currentDeck.IsValidMission();
                break;

            case TaskStrategyCommandMenu.MENU_NAME.ENSYU:
                list = currentDeck.IsValidPractice();
                break;
            }
            bool flag = list.get_Count() == 0;

            if (!flag)
            {
                CommonPopupDialog.Instance.StartPopup(Util.getCancelReason(list.get_Item(0)));
            }
            else
            {
                bool flag2 = TaskStrategyCommandMenu.MENU_NAME.ENSEI == menuName;
                bool flag3 = !StrategyTopTaskManager.GetLogicManager().GetMissionAreaId().Contains(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID);
                if (flag3 && flag2)
                {
                    CommonPopupDialog.Instance.StartPopup("この海域の遠征任務は解放されていません");
                    return(false);
                }
            }
            return(flag);
        }
Пример #26
0
        public void UpdateVisible()
        {
            StrategyMapManager logicManager = StrategyTopTaskManager.GetLogicManager();

            if (Enumerable.Any <DeckModel>(logicManager.Area.get_Item(1).GetDecks(), (DeckModel x) => x.GetFlagShip() == null))
            {
                this.setVisible(true);
            }
            else
            {
                this.setVisible(false);
            }
        }
        public void UpdateVisible()
        {
            StrategyMapManager logicManager = StrategyTopTaskManager.GetLogicManager();

            if (logicManager.Area[1].GetDecks().Any((DeckModel x) => x.GetFlagShip() == null))
            {
                setVisible(isVisible: true);
            }
            else
            {
                setVisible(isVisible: false);
            }
        }
        protected override bool Init()
        {
            Debug.Log("+++ TaskStrategyShipMove +++");
            KeyControlManager.Instance.KeyController = StrategyAreaManager.sailKeyController;
            currentAreaID = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID;
            prevMode      = StrategyTopTaskManager.Instance.GetInfoMng().NowInfoMode;
            StrategyTopTaskManager.Instance.GetInfoMng().SetSidePanelMode(StrategyInfoManager.Mode.AreaInfo);
            StrategyTopTaskManager.Instance.GetInfoMng().EnterInfoPanel(0.3f);
            List <int> neighboringAreaIDs = StrategyTopTaskManager.GetLogicManager().Area[currentAreaID].NeighboringAreaIDs;

            StrategyTopTaskManager.Instance.TileManager.ChangeTileColorMove(neighboringAreaIDs);
            return(true);
        }
Пример #29
0
        public List <int> CreateOpenTileIDs()
        {
            List <int> list = new List <int>();

            for (int i = 1; i <= 17; i++)
            {
                if (StrategyTopTaskManager.GetLogicManager().Area[i].IsOpen())
                {
                    list.Add(i);
                }
            }
            return(list);
        }
Пример #30
0
 private void ShipLevelUp(int AddLevel)
 {
     if (ShipName[1].text != "NONE")
     {
         int       ship_mem_id = Convert.ToInt32(MemID.text);
         ShipModel ship        = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(ship_mem_id);
         for (int i = 0; i < AddLevel; i++)
         {
             ship.AddExp(ship.Exp_Next);
         }
         ShipLevel.text = ship.Level.ToString();
     }
 }