Beispiel #1
0
 private void MapsOpen(int AreaNo, int OpenNum)
 {
     for (int i = 1; i < OpenNum + 1; i++)
     {
         Debug_Mod.OpenMapArea(AreaNo, i);
     }
 }
Beispiel #2
0
    private IEnumerator DeckTeaTime(DeckModel deckModel)
    {
        yield return(StartCoroutine(WaitForCount("Next (ง \u02d8ω\u02d8 )ว", 5)));

        new Debug_Mod();
        Debug_Mod.DeckRefresh(deckModel.Id);
    }
Beispiel #3
0
        public void DBG_damage()
        {
            if (this._debug_shipping)
            {
                return;
            }
            this._debug_shipping = true;
            UserInfoModel    userInfo  = this.rep.now_clsRepair().UserInfo;
            List <ShipModel> all_ships = userInfo.__GetShipList__();
            List <ShipModel> list      = this.rep.now_clsRepair().GetAreaShips(this.rep.NowArea(), all_ships);

            if (this.rep.NowArea() == 1)
            {
                list.AddRange(this.rep.now_clsRepair().GetDepotShips(all_ships));
            }
            list = DeckUtil.GetSortedList(list, SortKey.DAMAGE);
            using (List <ShipModel> .Enumerator enumerator = list.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    ShipModel current = enumerator.get_Current();
                    int       subvalue;
                    switch (this.damage_flag)
                    {
                    case 0:
                        subvalue = (int)Math.Ceiling((double)((float)current.MaxHp * 0.25f));
                        break;

                    case 1:
                        subvalue = (int)Math.Ceiling((double)((float)current.MaxHp * 0.25f));
                        break;

                    case 2:
                        subvalue = current.NowHp - 1;
                        break;

                    case 3:
                        goto IL_F9;

                    default:
                        goto IL_F9;
                    }
IL_115:
                    Debug_Mod.SubHp(current.MemId, subvalue);
                    continue;
IL_F9:
                    subvalue         = current.NowHp - current.MaxHp;
                    this.damage_flag = -1;
                    goto IL_115;
                }
            }
            this.damage_flag++;
            Mem.DelList <ShipModel>(ref all_ships);
            Mem.DelList <ShipModel>(ref list);
            CommonPopupDialog.Instance.StartPopup("DBG: 母港へ行きます。");
            SingletonMonoBehaviour <PortObjectManager> .Instance.BackToActiveScene();

            this._debug_shipping = false;
        }
 public static void Debug_OpenAllDeckPractice()
 {
     Debug_Mod.DeckPracticeMenu_StateChange(DeckPracticeType.Hou, state: true);
     Debug_Mod.DeckPracticeMenu_StateChange(DeckPracticeType.Kouku, state: true);
     Debug_Mod.DeckPracticeMenu_StateChange(DeckPracticeType.Normal, state: true);
     Debug_Mod.DeckPracticeMenu_StateChange(DeckPracticeType.Rai, state: true);
     Debug_Mod.DeckPracticeMenu_StateChange(DeckPracticeType.Sougou, state: true);
     Debug_Mod.DeckPracticeMenu_StateChange(DeckPracticeType.Taisen, state: true);
 }
Beispiel #5
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;
 }
Beispiel #6
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();
 }
Beispiel #7
0
        public void AddExp(int exp)
        {
            Debug_Mod       arg_26_0 = new Debug_Mod();
            List <Mem_ship> list     = new List <Mem_ship>();

            list.Add(this._mem_data);
            List <Mem_ship> arg_26_1 = list;
            List <int>      list2    = new List <int>();

            list2.Add(exp);
            arg_26_0.ShipAddExp(arg_26_1, list2);
        }
Beispiel #8
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();
 }
 private void LargeMode()
 {
     cursol.transform.position       = LargeOnOff.transform.position;
     cursol.transform.localPosition += cursolOffset;
     if (keyController.keyState[1].down)
     {
         Debug_Mod.OpenLargeDock();
         LargeOnOff.text = "ON";
     }
     if (keyController.keyState[0].down)
     {
         ChangeMode(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);
        }
Beispiel #11
0
        public void DBG_damage()
        {
            if (!_debug_shipping)
            {
                _debug_shipping = true;
                UserInfoModel    userInfo  = rep.now_clsRepair().UserInfo;
                List <ShipModel> p         = userInfo.__GetShipList__();
                List <ShipModel> areaShips = rep.now_clsRepair().GetAreaShips(rep.NowArea(), p);
                if (rep.NowArea() == 1)
                {
                    areaShips.AddRange(rep.now_clsRepair().GetDepotShips(p));
                }
                areaShips = DeckUtil.GetSortedList(areaShips, SortKey.DAMAGE);
                foreach (ShipModel item in areaShips)
                {
                    int subvalue;
                    switch (damage_flag)
                    {
                    case 0:
                        subvalue = (int)Math.Ceiling((float)item.MaxHp * 0.25f);
                        break;

                    case 1:
                        subvalue = (int)Math.Ceiling((float)item.MaxHp * 0.25f);
                        break;

                    case 2:
                        subvalue = item.NowHp - 1;
                        break;

                    default:
                        subvalue    = item.NowHp - item.MaxHp;
                        damage_flag = -1;
                        break;
                    }
                    Debug_Mod.SubHp(item.MemId, subvalue);
                }
                damage_flag++;
                Mem.DelList(ref p);
                Mem.DelList(ref areaShips);
                CommonPopupDialog.Instance.StartPopup("DBG: 母港へ行きます。");
                SingletonMonoBehaviour <PortObjectManager> .Instance.BackToActiveScene();

                _debug_shipping = false;
            }
        }
Beispiel #12
0
 private void LoadPresetData(int PresetNo)
 {
     Entity_PresetData.Param presetData = presetDataManager.GetPresetData(PresetNo);
     Debug_Mod.SetFleetLevel(presetData.TeitokuLV);
     AddMaterialAndItems(presetData);
     Debug_Mod.Add_Tunker(presetData.Tanker);
     DeployTanker();
     AreaOpen(presetData);
     AddDeck(presetData);
     Debug_Mod.SetRebellionPhase(presetData.RebellionPhase);
     AddShips(presetData);
     SetDeck(presetData);
     SetAllShipsLevel(presetData.AllShipLevel);
     if (presetData.AddAllShip)
     {
         Debug_Mod.Add_ShipAll();
     }
 }
        public IEnumerator Initialize()
        {
            yield return(new WaitForSeconds(0.5f));

            go = (Object.Instantiate(Resources.Load("Prefabs/Remodel/MarriageCut")) as GameObject);
            if (go == null)
            {
                Debug.Log("Failed to properly instantiate and initialize MarriageCut");
                yield break;
            }
            go.name = "MarriageCut";
            go.transform.localPosition = new Vector3(-1000f, -1000f, 0f);
            MarriageManager manager = go.GetComponent <MarriageManager>();

            if (manager == null)
            {
                manager = go.AddComponent <MarriageManager>();
            }
            if (manager == null)
            {
                Debug.Log("Failed to properly instantiate and initialize MarriageCut");
                yield break;
            }
            manager.enabled = true;
            List <int> tmpList2 = new List <int>
            {
                54
            };
            Debug_Mod debug = new Debug_Mod();

            tmpList2 = debug.Add_Ship(tmpList2);
            ShipModel ship = new ShipModel(tmpList2[0]);

            if (ship == null)
            {
                Debug.Log("Failed to properly instantiate and initialize MarriageCut");
            }
            else
            {
                manager.Initialize(ship, KeyControlManager.Instance.KeyController, DeleteGO);
            }
        }
Beispiel #14
0
        public void CreateDebugData(int ButtonNo)
        {
            Debug.Log(ButtonNo);
            App.CreateSaveDataNInitialize(UserInfo.Name, 54, UserInfo.Difficulty, isInherit: false);
            App.CreateSaveDataNInitialize(UserInfo.Name, 54, UserInfo.Difficulty, isInherit: false);
            SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = StrategyTopTaskManager.GetLogicManager().UserInfo.GetDeck(1);
            StrategyTopTaskManager.Instance.GetAreaMng().ChangeFocusTile(1, immediate: true);
            UserInfoModel userInfo = StrategyTopTaskManager.GetLogicManager().UserInfo;
            TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial;

            for (int i = 0; i < 20; i++)
            {
                tutorial.SetStepTutorialFlg(i);
            }
            for (int j = 0; j < 99; j++)
            {
                tutorial.SetKeyTutorialFlg(j);
            }
            LoadPresetData(ButtonNo);
            Debug_Mod.Add_SlotItemAll();
        }
Beispiel #15
0
        private static void DebugInit()
        {
            Diagnostics.enableHUD = true;
            Debug_Mod  debug_Mod = new Debug_Mod();
            List <int> list      = new List <int>();

            Debug.Log("ADD SHIP");
            debug_Mod.Add_Ship(list);
            list.Add(330);
            list.Add(24);
            list.Add(175);
            list.Add(117);
            list.Add(75);
            list.Add(321);
            list.Add(182);
            for (int i = 100; i < 110; i++)
            {
                list.Add(i);
            }
            debug_Mod.Add_Ship(list);
            OrganizeManager organizeManager = new OrganizeManager(1);

            debug_Mod.Add_Deck(2);
            debug_Mod.Add_Deck(3);
            debug_Mod.Add_Deck(4);
            debug_Mod.Add_Deck(5);
            debug_Mod.Add_Deck(6);
            ManagerBase.initialize();
            organizeManager.ChangeOrganize(1, 2, 2);
            Dictionary <int, int> dictionary = new Dictionary <int, int>();

            for (int j = 0; j < 100; j++)
            {
                if ((1 <= j && j <= 3) || (10 <= j && j <= 12) || (49 <= j && j <= 59))
                {
                    dictionary[j] = 1;
                }
                dictionary[54] = 0;
                dictionary[59] = 10;
            }
            debug_Mod.Add_UseItem(dictionary);
            debug_Mod.Add_Materials(enumMaterialCategory.Fuel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bull, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Steel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bauxite, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Repair_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Dev_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Revamp_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Build_Kit, 2000);
            debug_Mod.Add_Coin(80000);
            List <int> list2 = new List <int>();

            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            for (int k = 0; k < 30; k++)
            {
                list2.Add(14);
            }
            for (int l = 1; l < 100; l++)
            {
                list2.Add(l);
            }
            for (int m = 0; m < 30; m++)
            {
                list2.Add(25);
            }
            for (int n = 0; n < 6; n++)
            {
                list2.Add(42);
            }
            for (int num = 1; num < 100; num++)
            {
                Debug_Mod.ChangeSlotLevel(list2[num], 9);
            }
            debug_Mod.Add_SlotItem(list2);
            DebugUtils.SLog("DEBUG_MOD OK");
        }
        private void AreaMode()
        {
            int num  = Convert.ToInt32(AreaOpenNo.text);
            int num2 = Convert.ToInt32(MapOpenNo.text);

            if (AreaModeCursol)
            {
                cursol.transform.position = AreaOpenNo.transform.position;
            }
            else
            {
                cursol.transform.position = MapOpenNo.transform.position;
            }
            cursol.transform.localPosition += cursolOffset;
            if (keyController.keyState[10].down || keyController.keyState[14].down)
            {
                AreaModeCursol = !AreaModeCursol;
            }
            if (keyController.keyState[12].down)
            {
                if (AreaModeCursol)
                {
                    num--;
                }
                else
                {
                    num2--;
                }
            }
            if (keyController.keyState[8].down)
            {
                if (AreaModeCursol)
                {
                    num++;
                }
                else
                {
                    num2++;
                }
            }
            if (keyController.keyState[1].down)
            {
                if (AreaModeCursol)
                {
                    for (int i = 1; i < 7; i++)
                    {
                        Debug_Mod.OpenMapArea(num, i);
                    }
                }
                else
                {
                    Debug_Mod.OpenMapArea(num, num2);
                }
            }
            num             = Util.FixRangeValue(num, 1, 17, 1);
            num2            = Util.FixRangeValue(num2, 1, 5, 1);
            AreaOpenNo.text = num.ToString();
            MapOpenNo.text  = num2.ToString();
            if (StrategyTopTaskManager.GetLogicManager().SelectArea(num).Maps.Length > num2 - 1)
            {
                if (StrategyTopTaskManager.GetLogicManager().SelectArea(num).Maps[num2 - 1].Cleared)
                {
                    ClearState.text = "状態:クリア済み";
                }
                else
                {
                    ClearState.text = "状態:未クリア";
                }
            }
            else
            {
                ClearState.text = "マップが存在しません";
            }
            if (keyController.keyState[0].down)
            {
                Hashtable hashtable = new Hashtable();
                hashtable.Add("newOpenAreaIDs", openAreaIDs.ToArray());
                RetentionData.SetData(hashtable);
                ChangeMode(0);
            }
        }
Beispiel #17
0
        static void Main(string[] args)
        {
            AppInitializeManager.Awake();
            App.InitSystems(); // 26 fuso

            // var bgm = Mst_DataManager.Instance.GetMstBgm();
            // var cabinet = Mst_DataManager.Instance.GetMstCabinet();
            // var payitem = Mst_DataManager.Instance.GetPayitem();
            // var furnitureText = Mst_DataManager.Instance.GetFurnitureText();


            Debug_Mod  debug_Mod = new Debug_Mod();
            List <int> list      = new List <int>();

            Debug.Log("ADD SHIP");
            debug_Mod.Add_Ship(list);
            list.Add(330); // Akizuki Kai
            list.Add(24);  // Ooi
            list.Add(175); // Z3
            list.Add(117); // Zuihou Kai
            list.Add(75);  // Hiyou
            list.Add(321); // Ooyodo Kai
            list.Add(182); // Akashi
            for (int i = 100; i < 110; i++)
            {
                // 100 Tama
                // 101 Kiso
                // 102 Chitose
                // 103 Chiyoda
                // 104 Chitose Kai
                // 105 Chiyoda Kai
                // 106 Chitose A
                // 107 Chiyoda A
                // 108 Chitose-Kou
                // 109 Chiyoda-Kou
                list.Add(i);
            }
            debug_Mod.Add_Ship(list);

            var userData = Comm_UserDatas.Instance;



            // var ui = (new LocalManager()).UserInfo;
            // LocalManager localManager = new LocalManager();

            OrganizeManager organizeManager = new OrganizeManager(1);

            debug_Mod.Add_Deck(2);
            debug_Mod.Add_Deck(3);
            debug_Mod.Add_Deck(4);
            debug_Mod.Add_Deck(5);
            debug_Mod.Add_Deck(6);


            ManagerBase.initialize();
            organizeManager.ChangeOrganize(1, 2, 2);
            organizeManager.ChangeOrganize(1, 3, 3);

            Dictionary <int, int> dictionary = new Dictionary <int, int>();

            for (int j = 0; j < 100; j++)
            {
                if ((1 <= j && j <= 3) || (10 <= j && j <= 12) || (49 <= j && j <= 59))
                {
                    dictionary[j] = 1;
                }
                dictionary[54] = 0;
                dictionary[59] = 10;
            }
            debug_Mod.Add_UseItem(dictionary);



            debug_Mod.Add_Materials(enumMaterialCategory.Fuel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bull, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Steel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bauxite, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Repair_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Dev_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Revamp_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Build_Kit, 2000);
            debug_Mod.Add_Coin(80000);
            List <int> list2 = new List <int>();

            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            for (int k = 0; k < 30; k++)
            {
                list2.Add(14);
            }
            for (int l = 1; l < 100; l++)
            {
                list2.Add(l);
            }
            for (int m = 0; m < 30; m++)
            {
                list2.Add(25);
            }
            for (int n = 0; n < 6; n++)
            {
                list2.Add(42);
            }
            for (int num = 1; num < 100; num++)
            {
                Debug_Mod.ChangeSlotLevel(list2[num], 9);
            }
            debug_Mod.Add_SlotItem(list2);
            DebugUtils.SLog("DEBUG_MOD OK");


            StrategyTopTaskManager top = new StrategyTopTaskManager();
            // top.Awake2();

            StrategyMapManager strategyMapManager = new StrategyMapManager();
            SortieManager      sortieManager      = strategyMapManager.SelectArea(1);
            SortieMapManager   sortieMapManager   = sortieManager.GoSortie(1, 11);

            SortieBattleManager sortieBattleManager = sortieMapManager.BattleStart(BattleFormationKinds1.TanJuu);
            BattleResultModel   battleResultModel   = sortieBattleManager.GetBattleResult();


            //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 11);
            //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 14);
            //SortieBattleManager _clsSortieBattleManager = _clsSortieMapManager.BattleStart(BattleFormationKinds1.TanJuu);
            // var a = KCV.BattleCut.BattleCutPhase.Command;
            // CommandPhaseModel _clscommandPhaseModel = _clsSortieBattleManager.GetCommandPhaseModel();
            // var a = Server_Controllers.BattleLogic.ExecBattleKinds.DayToNight;
            // _clsSortieBattleManager.StartDayToNightBattle();
            //BattleResultModel res = _clsSortieBattleManager.GetBattleResult();

            Console.WriteLine("hajimarimasu");
        }
 private void HealMode()
 {
     Debug_Mod.DeckRefresh(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter3);
     ChangeMode(0);
 }
Beispiel #19
0
 private void SetRebellionPoint()
 {
     Debug_Mod.SetRebellionPoint(areaID, DebugRP);
     StrategyTopTaskManager.CreateLogicManager();
     setTileColor();
 }
 private void MaterialMode()
 {
     if (materialPhase == 0)
     {
         keyController.SilentChangeIndex(SeachActiveIndex(keyController.Index, materialsLabel, keyController.prevIndexChangeValue == 1));
         cursol.transform.position       = materialsLabel[keyController.Index].transform.position;
         cursol.transform.localPosition += cursolOffset;
     }
     else
     {
         cursol.transform.position       = materialsNum[nowMaterial].transform.position;
         cursol.transform.localPosition += new Vector3(-150f, -20f, 0f);
         if (nowMaterial != 8)
         {
             if (keyController.keyState[8].down)
             {
                 materialsNum[nowMaterial].text = (Convert.ToInt32(materialsNum[nowMaterial].text) + mag).ToString();
             }
             if (keyController.keyState[12].down)
             {
                 materialsNum[nowMaterial].text = (Convert.ToInt32(materialsNum[nowMaterial].text) - mag).ToString();
             }
         }
         else if (keyController.keyState[1].down)
         {
             if (mag > 10)
             {
                 mag = 10;
             }
             Debug_Mod.Add_Tunker(1 * mag);
             StrategyTopTaskManager.CreateLogicManager();
             materialsNum[8].text = StrategyTopTaskManager.GetLogicManager().GetNonDeploymentTankerCount().GetCountNoMove()
                                    .ToString();
         }
     }
     if (keyController.keyState[1].down && materialPhase == 0)
     {
         materialPhase = 1;
         nowMaterial   = keyController.Index;
     }
     if (!keyController.keyState[0].down)
     {
         return;
     }
     if (materialPhase == 0)
     {
         ChangeMode(0);
         StrategyMapManager logicManager = StrategyTopTaskManager.GetLogicManager();
         debugMod.Add_Materials(enumMaterialCategory.Fuel, Convert.ToInt32(materialsNum[0].text) - logicManager.Material.Fuel);
         debugMod.Add_Materials(enumMaterialCategory.Bull, Convert.ToInt32(materialsNum[1].text) - logicManager.Material.Ammo);
         debugMod.Add_Materials(enumMaterialCategory.Steel, Convert.ToInt32(materialsNum[2].text) - logicManager.Material.Steel);
         debugMod.Add_Materials(enumMaterialCategory.Bauxite, Convert.ToInt32(materialsNum[3].text) - logicManager.Material.Baux);
         debugMod.Add_Materials(enumMaterialCategory.Dev_Kit, Convert.ToInt32(materialsNum[4].text) - logicManager.Material.Devkit);
         debugMod.Add_Materials(enumMaterialCategory.Repair_Kit, Convert.ToInt32(materialsNum[5].text) - logicManager.Material.RepairKit);
         debugMod.Add_Materials(enumMaterialCategory.Build_Kit, Convert.ToInt32(materialsNum[6].text) - logicManager.Material.BuildKit);
         debugMod.Add_Materials(enumMaterialCategory.Revamp_Kit, Convert.ToInt32(materialsNum[7].text) - logicManager.Material.Revkit);
         debugMod.Add_Coin(Convert.ToInt32(materialsNum[9].text) - logicManager.UserInfo.FCoin);
         debugMod.Add_Spoint(Convert.ToInt32(materialsNum[10].text) - logicManager.UserInfo.SPoint);
         Dictionary <int, int> dictionary = new Dictionary <int, int>();
         for (int i = 0; i < 100; i++)
         {
             if ((1 <= i && i <= 3) || (10 <= i && i <= 12) || (49 <= i && i <= 59))
             {
                 dictionary[i] = Convert.ToInt32(materialsNum[11].text);
             }
         }
         debugMod.Add_UseItem(dictionary);
     }
     else
     {
         materialPhase       = 0;
         keyController.Index = nowMaterial;
     }
 }