public void Init()
        {
            this.TransportKeyController = new KeyControl(0, 0, 0.4f, 0.1f);
            this.mStrategyMapManager    = StrategyTopTaskManager.GetLogicManager();
            this.mMinimumSetTankerValue = 0;
            this.mMaximumSetTankerValue = 30;
            this.mAlreadySetTankerValue = this.mStrategyMapManager.Area.get_Item(this.top.areaID).GetTankerCount().GetCount();
            this.mOwnUsableTankerValue  = this.mStrategyMapManager.GetNonDeploymentTankerCount().GetCountNoMove();
            if (this.mOwnUsableTankerValue + this.mAlreadySetTankerValue < 30)
            {
                this.mMaximumSetTankerValue = this.mOwnUsableTankerValue + this.mAlreadySetTankerValue;
            }
            this.needTankerNum.textInt = this.mStrategyMapManager.Area.get_Item(this.top.areaID).GetTankerCount().GetReqCount();
            this.mSetTankerValue       = this.mAlreadySetTankerValue + (this.top.TankerCount - this.mAlreadySetTankerValue);
            this.OnUpdatedTankerValue(this.mSetTankerValue);
            base.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.3f, 0f, UITweener.Method.Linear, UITweener.Style.Once, null, string.Empty);
            this.top.isChangeMode = false;
            TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial;
            bool          flag     = SingletonMonoBehaviour <TutorialGuideManager> .Instance.CheckAndShowFirstTutorial(tutorial, TutorialGuideManager.TutorialID.TankerDeploy, null, delegate
            {
                this.TransportKeyController.IsRun = true;
            });

            if (flag)
            {
                this.TransportKeyController.IsRun = false;
            }
        }
예제 #2
0
        public void Init()
        {
            TransportKeyController = new KeyControl();
            mStrategyMapManager    = StrategyTopTaskManager.GetLogicManager();
            mMinimumSetTankerValue = 0;
            mMaximumSetTankerValue = 30;
            mAlreadySetTankerValue = mStrategyMapManager.Area[top.areaID].GetTankerCount().GetCount();
            mOwnUsableTankerValue  = mStrategyMapManager.GetNonDeploymentTankerCount().GetCountNoMove();
            if (mOwnUsableTankerValue + mAlreadySetTankerValue < 30)
            {
                mMaximumSetTankerValue = mOwnUsableTankerValue + mAlreadySetTankerValue;
            }
            needTankerNum.textInt = mStrategyMapManager.Area[top.areaID].GetTankerCount().GetReqCount();
            mSetTankerValue       = mAlreadySetTankerValue + (top.TankerCount - mAlreadySetTankerValue);
            OnUpdatedTankerValue(mSetTankerValue);
            base.gameObject.SafeGetTweenAlpha(0f, 1f, 0.3f, 0f, UITweener.Method.Linear, UITweener.Style.Once, null, string.Empty);
            top.isChangeMode = false;
            TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial;

            if (SingletonMonoBehaviour <TutorialGuideManager> .Instance.CheckAndShowFirstTutorial(tutorial, TutorialGuideManager.TutorialID.TankerDeploy, null, delegate
            {
                TransportKeyController.IsRun = true;
            }))
            {
                TransportKeyController.IsRun = false;
            }
        }
예제 #3
0
        public IEnumerator StartMonthAnimation(StrategyMapManager LogicMng, UserPreActionPhaseResultModel userPreAction, bool isDebug)
        {
            MaterialInfo materialInfo = userPreAction.GetMonthlyBonus();

            if (!materialInfo.HasPositive())
            {
                yield break;
            }
            SetActiveAnimType(AnimType.Month);
            StrategyMonthWeekBonus monthBonus     = MonthBonus;
            TurnString             datetimeString = LogicMng.DatetimeString;

            monthBonus.SetLabels(datetimeString.Month, materialInfo);
            anim.Play("MonthAnimation");
            int count = 0;

            while (anim.isPlaying && !isDebug)
            {
                count++;
                if (count > 100)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }
        }
 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);
 }
예제 #5
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);
 }
예제 #6
0
        public IEnumerator StartDayAnimation(StrategyMapManager LogicMng, bool isDebug)
        {
            SetActiveAnimType(AnimType.Day);
            string[]   array          = new string[6];
            TurnString datetimeString = LogicMng.DatetimeString;

            array[0] = datetimeString.Year;
            array[1] = "の年 ";
            TurnString datetimeString2 = LogicMng.DatetimeString;

            array[2] = datetimeString2.Month;
            array[3] = " ";
            TurnString datetimeString3 = LogicMng.DatetimeString;

            array[4] = datetimeString3.Day;
            array[5] = "日";
            string day = string.Concat(array);

            switch (DateTime.DaysInMonth(LogicMng.Datetime.Year, LogicMng.Datetime.Month) - LogicMng.Datetime.Day)
            {
            case 4:
                dayText.color = new Color32(190, 230, 190, byte.MaxValue);
                break;

            case 3:
                dayText.color = new Color32(150, 230, 150, byte.MaxValue);
                break;

            case 2:
                dayText.color = new Color32(110, 230, 110, byte.MaxValue);
                break;

            case 1:
                dayText.color = new Color32(70, 230, 70, byte.MaxValue);
                break;

            case 0:
                dayText.color = new Color32(30, 230, 30, byte.MaxValue);
                break;

            default:
                dayText.color = Color.white;
                break;
            }
            dayText.text = day;
            anim.Play("DayAnimation");
            int count = 0;

            while (anim.isPlaying && !isDebug)
            {
                count++;
                if (count > 100)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }
        }
예제 #7
0
 public void setAreaModels(StrategyMapManager strategyManager)
 {
     for (int i = 1; i < this.Tiles.Length; i++)
     {
         this.Tiles[i].setAreaModel(strategyManager.Area.get_Item(i));
     }
     this.updateTilesColor();
     this.UpdateAllAreaDockIcons();
 }
예제 #8
0
 public void setAreaModels(StrategyMapManager strategyManager)
 {
     for (int i = 1; i < Tiles.Length; i++)
     {
         Tiles[i].setAreaModel(strategyManager.Area[i]);
     }
     updateTilesColor();
     UpdateAllAreaDockIcons();
 }
예제 #9
0
        private void Start()
        {
            StrategyMapManager strategyMapManager = new StrategyMapManager();
            SortieManager      sortieManager      = strategyMapManager.SelectArea(1);

            _clsSortieMapManager = sortieManager.GoSortie(1, 11);
            sortieManager.GoSortie(1, 11);
            _clsSortieBattleManager = _clsSortieMapManager.BattleStart(BattleFormationKinds1.FukuJuu);
            GameObject gameObject = (GameObject)Object.Instantiate(position: new Vector3(0f, 0f, 0f), original: currentDetonator, rotation: Quaternion.identity);
        }
예제 #10
0
 private void OnDestroy()
 {
     ReturnMissionAnim = null;
     mPrefab_UserInterfaceStrategyResult = null;
     dayAnimation      = null;
     ReturnMissionAnim = null;
     LogicMng          = null;
     enemyResult       = null;
     TurnResult        = null;
     userPreAction     = null;
 }
 protected override void Awake()
 {
     DebugUtils.SLog("+++ StrategyTopTask +++");
     if (!AppInitializeManager.IsInitialize)
     {
         return;
     }
     StrategyTopTaskManager.StrategyLogicManager = new StrategyMapManager();
     StrategyTopTaskManager.Instance             = this;
     this.GetRef();
 }
        private void Start()
        {
            StrategyMapManager strategyMapManager = new StrategyMapManager();
            SortieManager      sortieManager      = strategyMapManager.SelectArea(1);

            BattleTest._clsSortieMapManager = sortieManager.GoSortie(1, 11);
            SortieMapManager sortieMapManager = sortieManager.GoSortie(1, 11);

            BattleTest._clsSortieBattleManager = BattleTest._clsSortieMapManager.BattleStart(BattleFormationKinds1.FukuJuu);
            Vector3    vector     = new Vector3(0f, 0f, 0f);
            GameObject gameObject = (GameObject)Object.Instantiate(this.currentDetonator, vector, Quaternion.get_identity());
        }
예제 #13
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);
            }
        }
 private void OnDestroy()
 {
     this._clsTasks.UnInit();
     StrategyTaskManager._clsTopTask        = null;
     StrategyTaskManager._clsRebellionTask  = null;
     StrategyTaskManager._traOverView       = null;
     StrategyTaskManager._traOverViewCamera = null;
     StrategyTaskManager._traMapRoot        = null;
     this._traScenePrefab = null;
     StrategyTaskManager._clsStrategyMapManager = null;
     StrategyTaskManager.callBack = null;
     this.KeyManager = null;
 }
예제 #16
0
 private void OnDestroy()
 {
     _clsTasks.UnInit();
     _clsTopTask            = null;
     _clsRebellionTask      = null;
     _traOverView           = null;
     _traOverViewCamera     = null;
     _traMapRoot            = null;
     _traScenePrefab        = null;
     _clsStrategyMapManager = null;
     callBack   = null;
     KeyManager = null;
 }
예제 #17
0
        protected override bool Init()
        {
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
            maxIndex = Category.Length - 1;
            logicMng = new StrategyMapManager();
            rootPrefab.SetActive(true);
            keyController = new KeyControl(0, maxIndex);
            keyController.setChangeValue(-1f, 0f, 1f, 0f);
            keyController.HoldJudgeTime = 1f;
            nowMode              = Mode.CategorySelect;
            cursolOffset         = new Vector3(-77f, -20f, 0f);
            MstID.text           = "1";
            MemID.text           = "1";
            debugMod             = new Debug_Mod();
            materialsNum[0].text = StrategyTopTaskManager.GetLogicManager().Material.Fuel.ToString();
            materialsNum[1].text = StrategyTopTaskManager.GetLogicManager().Material.Ammo.ToString();
            materialsNum[2].text = StrategyTopTaskManager.GetLogicManager().Material.Steel.ToString();
            materialsNum[3].text = StrategyTopTaskManager.GetLogicManager().Material.Baux.ToString();
            materialsNum[4].text = StrategyTopTaskManager.GetLogicManager().Material.Devkit.ToString();
            materialsNum[5].text = StrategyTopTaskManager.GetLogicManager().Material.RepairKit.ToString();
            materialsNum[6].text = StrategyTopTaskManager.GetLogicManager().Material.BuildKit.ToString();
            materialsNum[7].text = StrategyTopTaskManager.GetLogicManager().Material.Revkit.ToString();
            materialsNum[8].text = StrategyTopTaskManager.GetLogicManager().GetNonDeploymentTankerCount().GetCountNoMove()
                                   .ToString();
            materialsNum[9].text  = StrategyTopTaskManager.GetLogicManager().UserInfo.FCoin.ToString();
            materialsNum[10].text = StrategyTopTaskManager.GetLogicManager().UserInfo.SPoint.ToString();
            materialsNum[11].text = "0";
            int focusAreaID = StrategyAreaManager.FocusAreaID;

            AreaOpenNo.text = focusAreaID.ToString();
            if (StrategyTopTaskManager.GetLogicManager().SelectArea(focusAreaID).Maps[0].Cleared)
            {
            }
            openAreaIDs      = new List <int>();
            AddMstIDs        = new List <int>();
            ShipName[0].text = new ShipModelMst(1).Name;
            ShipModel ship = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(1);

            if (ship != null)
            {
                ShipName[1].text = ship.Name;
                ShipLevel.text   = ship.Level.ToString();
            }
            ItemMstID.text = "1";
            SlogOnOff.text = SingletonMonoBehaviour <AppInformation> .Instance.SlogDraw.ToString();

            DeckNum.text    = StrategyTopTaskManager.GetLogicManager().UserInfo.DeckCount.ToString();
            LargeOnOff.text = ((!new ArsenalManager().LargeEnabled) ? "OFF" : "ON");
            return(true);
        }
        public void Initialize(ShipModel FlagShip)
        {
            StrategyMapManager logicManager = StrategyTopTaskManager.GetLogicManager();

            SPointNumLabel.textInt = logicManager.UserInfo.SPoint;
            NejiNumLabel.textInt   = logicManager.Material.Revkit;
            if (FlagShip.ShipType == 19)
            {
                setKaisyuMode();
            }
            else
            {
                setItemMode();
            }
        }
 public static StrategyMapManager GetStrategyMapManager()
 {
     if (StrategyTaskManager._clsStrategyMapManager == null)
     {
         if (StrategyTopTaskManager.GetLogicManager() != null)
         {
             StrategyTaskManager._clsStrategyMapManager = StrategyTopTaskManager.GetLogicManager();
         }
         else
         {
             StrategyTaskManager._clsStrategyMapManager = new StrategyMapManager();
         }
     }
     return(StrategyTaskManager._clsStrategyMapManager);
 }
예제 #20
0
        public IEnumerator EndDayAnimation(StrategyMapManager LogicMng, bool isDebug)
        {
            int leaveTurn = 3601 - LogicMng.Turn;

            if (CheckEndDay(leaveTurn))
            {
                SetActiveAnimType(AnimType.EndDay);
                string empty = string.Empty;
                string color = (leaveTurn > 50) ? "[F9C66CFF]" : ((leaveTurn <= 10) ? "[FF1000FF]" : "[FF6E00FF]");
                string day   = "残り継戦時間 " + color + leaveTurn + "[-]日";
                EndDayText.text = day;
                anim.Play("DayAnimation");
                while (anim.isPlaying && !isDebug)
                {
                    yield return(new WaitForEndOfFrame());
                }
            }
        }
예제 #21
0
 private void OnEnable()
 {
     strategyLogicManager = StrategyTopTaskManager.GetLogicManager();
     map_status();
     if (_onYet)
     {
         _Xpressed    = false;
         _firstUpdate = false;
         _isAnime     = false;
         _isTouch     = false;
         _arrow_flag  = false;
         _draw_labels();
         _board1 = GameObject.Find("board1");
         Object.Destroy(_board1.GetComponent <iTween>());
         _board1.transform.localPosition = Vector3.zero;
         _now_page = 1;
         _Button_L_B.transform.localScale = Vector3.zero;
         _Button_R_B.transform.localScale = Vector3.one;
     }
 }
예제 #22
0
        public IEnumerator StartSendChocoAnimation(StrategyMapManager LogicMng, UserPreActionPhaseResultModel userPreAction, bool isDebug)
        {
            if (userPreAction.Rewards.Count == 0)
            {
                yield break;
            }
            SetActiveAnimType(AnimType.Choco);
            anim.Play("SendChoco");
            int count = 0;

            while (anim.isPlaying && !isDebug)
            {
                count++;
                if (count > 100)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }
        }
예제 #23
0
 private void OnEnable()
 {
     this.strategyLogicManager = StrategyTopTaskManager.GetLogicManager();
     this.map_status();
     if (!this._onYet)
     {
         return;
     }
     this._Xpressed    = false;
     this._firstUpdate = false;
     this._isAnime     = false;
     this._isTouch     = false;
     this._arrow_flag  = false;
     this._draw_labels();
     this._board1 = GameObject.Find("board1");
     Object.Destroy(this._board1.GetComponent <iTween>());
     this._board1.get_transform().set_localPosition(Vector3.get_zero());
     this._now_page = 1;
     this._Button_L_B.get_transform().set_localScale(Vector3.get_zero());
     this._Button_R_B.get_transform().set_localScale(Vector3.get_one());
 }
예제 #24
0
 private void OnDestroy()
 {
     ENSEI          = null;
     EscortOrganize = null;
     mPrefab_UserInterfacePracticeManager = null;
     mUserInterfacePracticeManager        = null;
     sttm                = null;
     sailSelect          = null;
     CommandMenu         = null;
     LogicMng            = null;
     ShipNumberLabel     = null;
     areaModel           = null;
     warningPanel        = null;
     InfoRoot            = null;
     MapRoot             = null;
     OverView            = null;
     OverSceneObject     = null;
     StopExpeditionPanel = null;
     keyController       = null;
     SwipeEvent          = null;
     StopExpeditionPanel = null;
 }
 private void OnDestroy()
 {
     this.ENSEI          = null;
     this.EscortOrganize = null;
     this.mPrefab_UserInterfacePracticeManager = null;
     this.mUserInterfacePracticeManager        = null;
     this.sttm                = null;
     this.sailSelect          = null;
     this.CommandMenu         = null;
     this.LogicMng            = null;
     this.ShipNumberLabel     = null;
     this.areaModel           = null;
     this.warningPanel        = null;
     this.InfoRoot            = null;
     this.MapRoot             = null;
     this.OverView            = null;
     this.OverSceneObject     = null;
     this.StopExpeditionPanel = null;
     this.keyController       = null;
     this.SwipeEvent          = null;
     this.StopExpeditionPanel = null;
 }
        public void Initialize(StrategyMapManager manager, MissionResultModel missionResultModel, KeyControl keyController, Action onSelectNextAction)
        {
            mMissionResultModel = missionResultModel;
            mTransform_TouchControlArea.SetActive(isActive: false);
            mStrategyMapManager = manager;
            mMissionJudgeCutIn.Initialize(mMissionResultModel.result);
            mMissionResultBonus.Inititalize(mMissionResultModel);
            mMissionResultStatus.Inititalize(mMissionResultModel);
            ShipModel shipModel = mMissionResultModel.Ships[0];

            mTexture_FlagShipGraphic.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(shipModel.GetGraphicsMstId(), (!shipModel.IsDamaged())? 9 : 10);

            mTexture_FlagShipGraphic.MakePixelPerfect();
            mTexture_FlagShipGraphic.transform.localPosition = Util.Poi2Vec(shipModel.Offsets.GetShipDisplayCenter(shipModel.IsDamaged()));
            mLabel_AdmiralLevel.text           = mStrategyMapManager.UserInfo.Level.ToString();
            mLabel_AdmiralName.text            = mStrategyMapManager.UserInfo.Name;
            mLabel_AdmiralName.supportEncoding = false;
            mLabel_DeckName.text            = mStrategyMapManager.UserInfo.GetDeck(mMissionResultModel.DeckID).Name;
            mLabel_DeckName.supportEncoding = false;
            mLabel_MissionName.text         = mMissionResultModel.MissionName;
            mKeyController      = keyController;
            mOnSelectNextAction = onSelectNextAction;
        }
예제 #27
0
        public IEnumerator StartWeekAnimation(StrategyMapManager LogicMng, UserPreActionPhaseResultModel userPreAction, bool isDebug)
        {
            MaterialInfo materialInfo = userPreAction.GetWeeklyBonus();

            if (!materialInfo.HasPositive())
            {
                yield break;
            }
            SetActiveAnimType(AnimType.Week);
            WeekBonus.SetLabelsWeek(materialInfo);
            anim.Play("WeekAnimation");
            int count = 0;

            while (anim.isPlaying && !isDebug)
            {
                count++;
                if (count > 100)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }
        }
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref mPanelThis);
     UserInterfacePortManager.ReleaseUtils.Release(ref mLabel_MissionName);
     UserInterfacePortManager.ReleaseUtils.Release(ref mLabel_AdmiralName);
     UserInterfacePortManager.ReleaseUtils.Release(ref mLabel_AdmiralLevel);
     UserInterfacePortManager.ReleaseUtils.Release(ref mLabel_DeckName);
     if (mMissionResultModel.Ships[0].IsDamaged())
     {
         UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_FlagShipGraphic);
     }
     else
     {
         UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_FlagShipGraphic, unloadUnUsedAsset: true);
     }
     mMissionResultModel         = null;
     mMissionResultBonus         = null;
     mMissionResultStatus        = null;
     mMissionJudgeCutIn          = null;
     mTransform_TouchControlArea = null;
     mStrategyMapManager         = null;
     mKeyController = null;
 }
 private void OnDestroy()
 {
     StrategyTopTaskManager.Instance = null;
     this.uiModel = null;
     StrategyTopTaskManager._clsCommandMenuTask  = null;
     StrategyTopTaskManager._clsSailSelect       = null;
     StrategyTopTaskManager._clsShipMove         = null;
     StrategyTopTaskManager._clsMapSelect        = null;
     StrategyTopTaskManager._clsDeploy           = null;
     StrategyTopTaskManager._clsAreaInfo         = null;
     StrategyTopTaskManager._clsDebug            = null;
     StrategyTopTaskManager._clsTurnEnd          = null;
     StrategyTopTaskManager.StrategyLogicManager = null;
     if (this.AlertToastCamera != null)
     {
         this.AlertToastCamera.SetActive(true);
     }
     this.AlertToastCamera = null;
     this.TutorialGuide6_1 = null;
     this.TutorialGuide6_2 = null;
     this.TutorialGuide8_1 = null;
     this.TutorialGuide9_1 = null;
     this.StartCor         = null;
 }
예제 #30
0
        private void makeSailSelectController()
        {
            sailKeyController  = new KeyControl(1, 17);
            int[,] useIndexMap = new int[18, 8]
            {
                {
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                },
                {
                    8,
                    8,
                    8,
                    11,
                    7,
                    9,
                    9,
                    0
                },
                {
                    9,
                    7,
                    7,
                    0,
                    0,
                    0,
                    10,
                    10
                },
                {
                    13,
                    13,
                    13,
                    0,
                    12,
                    8,
                    8,
                    0
                },
                {
                    10,
                    10,
                    10,
                    0,
                    0,
                    0,
                    0,
                    0
                },
                {
                    11,
                    6,
                    6,
                    14,
                    14,
                    0,
                    7,
                    7
                },
                {
                    12,
                    17,
                    17,
                    0,
                    14,
                    5,
                    5,
                    11
                },
                {
                    1,
                    11,
                    11,
                    5,
                    5,
                    2,
                    2,
                    9
                },
                {
                    3,
                    3,
                    3,
                    12,
                    11,
                    1,
                    1,
                    0
                },
                {
                    1,
                    1,
                    1,
                    7,
                    2,
                    10,
                    10,
                    0
                },
                {
                    9,
                    9,
                    9,
                    2,
                    2,
                    4,
                    4,
                    0
                },
                {
                    8,
                    12,
                    12,
                    6,
                    5,
                    7,
                    7,
                    1
                },
                {
                    3,
                    0,
                    17,
                    17,
                    6,
                    11,
                    11,
                    8
                },
                {
                    0,
                    0,
                    15,
                    15,
                    3,
                    3,
                    3,
                    0
                },
                {
                    6,
                    16,
                    16,
                    0,
                    0,
                    0,
                    5,
                    5
                },
                {
                    13,
                    0,
                    0,
                    0,
                    16,
                    17,
                    17,
                    13
                },
                {
                    15,
                    0,
                    0,
                    0,
                    14,
                    14,
                    17,
                    17
                },
                {
                    15,
                    15,
                    15,
                    16,
                    16,
                    6,
                    6,
                    12
                }
            };
            sailKeyController.setUseIndexMap(useIndexMap);
            StrategyMapManager logicManager = StrategyTopTaskManager.GetLogicManager();
            List <int>         list         = new List <int>();

            for (int i = 1; i < logicManager.Area.Count; i++)
            {
                if (logicManager.Area[i].IsOpen())
                {
                    list.Add(i);
                }
            }
            sailKeyController.setEnableIndex(list.ToArray());
            sailKeyController.Index = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID;
        }