Beispiel #1
0
 private void MapsOpen(int AreaNo, int OpenNum)
 {
     for (int i = 1; i < OpenNum + 1; i++)
     {
         Debug_Mod.OpenMapArea(AreaNo, i);
     }
 }
        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);
            }
        }