private string ReadFile(string path)
        {
            var str = "";

            if (m_saveToPlayerPrefs)
            {
                if (m_encrypted)
                {
                    str = PlayerPrefsUtility.GetEncryptedString(path);
                }
                else
                {
                    str = UnityEngine.PlayerPrefs.GetString(path);
                }
            }
            else
            {
                FileInfo fileInfo = new FileInfo(path);

                using (StreamReader sr = new StreamReader(fileInfo.OpenRead(), Encoding.Default))
                {
                    str = sr.ReadToEnd();
                }
            }

            return(str);
        }
Exemplo n.º 2
0
        public override void OnActivate(int pinID)
        {
            string          str1       = (string)null;
            string          str2       = (string)null;
            TowerFloorParam towerFloor = MonoSingleton <GameManager> .Instance.FindTowerFloor(GlobalVars.SelectedQuestID);

            if (towerFloor != null)
            {
                QuestParam questParam = towerFloor.GetQuestParam();
                if (questParam != null)
                {
                    str1 = questParam.iname;
                }
            }
            if (pinID == 0 && str1 != null)
            {
                str2 = PlayerPrefsUtility.GetString(PlayerPrefsUtility.CONFIRM_TOWER_MISSION_QUEST_ID, string.Empty);
            }
            if (str1 == str2)
            {
                this.ActivateOutputLinks(1);
                PlayerPrefsUtility.SetString(PlayerPrefsUtility.CONFIRM_TOWER_MISSION_QUEST_ID, string.Empty, true);
            }
            else
            {
                this.ActivateOutputLinks(2);
            }
        }
Exemplo n.º 3
0
        private void SaveTeamID()
        {
            switch (this.PartyType)
            {
            case FlowNode_SelectParty.PartyTypes.Normal:
                PlayerPrefsUtility.SetInt(PlayerPrefsUtility.TEAM_ID_KEY, (int)GlobalVars.SelectedPartyIndex, false);
                break;

            case FlowNode_SelectParty.PartyTypes.Multi:
                PlayerPrefsUtility.SetInt(PlayerPrefsUtility.MULTI_PLAY_TEAM_ID_KEY, (int)GlobalVars.SelectedPartyIndex, false);
                break;

            case FlowNode_SelectParty.PartyTypes.Arena:
                PlayerPrefsUtility.SetInt(PlayerPrefsUtility.ARENA_TEAM_ID_KEY, (int)GlobalVars.SelectedPartyIndex, false);
                break;

            case FlowNode_SelectParty.PartyTypes.ArenaDefense:
                MonoSingleton <GameManager> .Instance.Player.SetDefenseParty((int)GlobalVars.SelectedPartyIndex);

                break;

            case FlowNode_SelectParty.PartyTypes.RankMatch:
                PlayerPrefsUtility.SetInt(PlayerPrefsUtility.RANKMATCH_TEAM_ID_KEY, (int)GlobalVars.SelectedPartyIndex, false);
                break;
            }
        }
Exemplo n.º 4
0
        public void UnlockContents()
        {
            if (!this.mDesiredSceneIsHome || this.mDesirdSceneSet || ((CriticalSection.GetActive() & CriticalSections.SceneChange) != (CriticalSections)0 || !PlayerPrefsUtility.HasKey(PlayerPrefsUtility.HOME_LASTACCESS_PLAYER_LV)) || !PlayerPrefsUtility.HasKey(PlayerPrefsUtility.HOME_LASTACCESS_VIP_LV))
            {
                return;
            }
            PlayerData player  = MonoSingleton <GameManager> .Instance.Player;
            int        num1    = PlayerPrefsUtility.GetInt(PlayerPrefsUtility.HOME_LASTACCESS_PLAYER_LV, 0);
            int        lv      = player.Lv;
            int        num2    = PlayerPrefsUtility.GetInt(PlayerPrefsUtility.HOME_LASTACCESS_VIP_LV, 0);
            int        vipRank = player.VipRank;

            if (num1 >= lv && num2 >= vipRank)
            {
                return;
            }
            foreach (UnlockParam unlock in MonoSingleton <GameManager> .Instance.MasterParam.Unlocks)
            {
                if ((unlock.PlayerLevel == 0 || num1 < unlock.PlayerLevel && unlock.PlayerLevel <= lv) && (unlock.VipRank == 0 || num2 < unlock.VipRank && unlock.VipRank <= vipRank))
                {
                    NotifyList.PushContentsUnlock(unlock);
                }
            }
            PlayerPrefsUtility.SetInt(PlayerPrefsUtility.HOME_LASTACCESS_PLAYER_LV, lv, false);
            PlayerPrefsUtility.SetInt(PlayerPrefsUtility.HOME_LASTACCESS_VIP_LV, vipRank, false);
            LevelLock.UpdateLockStates();
        }
Exemplo n.º 5
0
    public void RegisterAnswer()
    {
        int tempSize = PlayerPrefsUtility.GetStringArray("cpfArray").Length;

        string[] tempArray    = PlayerPrefsUtility.GetStringArray("answerArray");
        string[] cpfTempArray = PlayerPrefsUtility.GetStringArray("cpfArray");

        for (int i = 0; i < tempSize; i++)
        {
            if (cpfTempArray[i] == PlayerPrefs.GetString("cpfSelect"))
            {
                tempArray[i] = quest1.text;
                PlayerPrefsUtility.SetStringArray("answerArray", tempArray);
                break;
            }
        }

        if (PlayerPrefs.GetInt("pointsSelect") < 39)
        {
            ballonDialogueBad.SetActive(true);
        }
        else
        {
            ballonDialogueGod.SetActive(true);
        }
        ViewCanvasQuest(false);
    }
Exemplo n.º 6
0
 private void EraseTimeOutPopupHistory(JSON_ShopListArray.Shops[] shops)
 {
     if (shops == null || shops.Length <= 0)
     {
         string json = JsonUtility.ToJson((object)new ShopTimeOutItemInfoArray());
         PlayerPrefsUtility.SetString(PlayerPrefsUtility.WARNED_EVENTSHOP_ITEM_TIMEOUT, json, false);
     }
     else
     {
         if (!PlayerPrefsUtility.HasKey(PlayerPrefsUtility.WARNED_EVENTSHOP_ITEM_TIMEOUT))
         {
             return;
         }
         ShopTimeOutItemInfoArray   outItemInfoArray        = (ShopTimeOutItemInfoArray)JsonUtility.FromJson <ShopTimeOutItemInfoArray>(PlayerPrefsUtility.GetString(PlayerPrefsUtility.WARNED_EVENTSHOP_ITEM_TIMEOUT, string.Empty));
         List <ShopTimeOutItemInfo> shopTimeOutItemInfoList = new List <ShopTimeOutItemInfo>();
         if (outItemInfoArray.Infos != null)
         {
             foreach (ShopTimeOutItemInfo info1 in outItemInfoArray.Infos)
             {
                 ShopTimeOutItemInfo info = info1;
                 if (((IEnumerable <JSON_ShopListArray.Shops>)shops).Any <JSON_ShopListArray.Shops>((Func <JSON_ShopListArray.Shops, bool>)(sh => sh.gname == info.ShopId)))
                 {
                     shopTimeOutItemInfoList.Add(info);
                 }
             }
         }
         string json = JsonUtility.ToJson((object)new ShopTimeOutItemInfoArray(shopTimeOutItemInfoList.ToArray()));
         PlayerPrefsUtility.SetString(PlayerPrefsUtility.WARNED_EVENTSHOP_ITEM_TIMEOUT, json, false);
     }
 }
Exemplo n.º 7
0
    public void Load()
    {
        boolean = PlayerPrefsUtility.GetBool("bool");
        color   = PlayerPrefsUtility.GetColor("color");
        color32 = PlayerPrefsUtility.GetColor32("color32");
        vec2    = PlayerPrefsUtility.GetVector2("vector2");
        vec3    = PlayerPrefsUtility.GetVector3("vector3");
        vec4    = PlayerPrefsUtility.GetVector4("vector4");
        quat    = PlayerPrefsUtility.GetQuaternion("quaternion");

        matrix = PlayerPrefsUtility.GetMatrix4x4("matrix4x4");
        rect   = PlayerPrefsUtility.GetRect("rect");
        bounds = PlayerPrefsUtility.GetBounds("bounds");

        //-------------------------------------------------

        booleanArray = PlayerPrefsUtility.GetBoolArray("bool");
        intArray     = PlayerPrefsUtility.GetIntArray("int");
        colorArray   = PlayerPrefsUtility.GetColorArray("color");
        color32Array = PlayerPrefsUtility.GetColor32Array("color32");
        vec2Array    = PlayerPrefsUtility.GetVector2Array("vector2");
        vec3Array    = PlayerPrefsUtility.GetVector3Array("vector3");
        vec4Array    = PlayerPrefsUtility.GetVector4Array("vector4");
        quatArray    = PlayerPrefsUtility.GetQuaternionArray("quaternion");

        matrixArray = PlayerPrefsUtility.GetMatrix4x4Array("matrix4x4");
        rectArray   = PlayerPrefsUtility.GetRectArray("rect");
        boundsArray = PlayerPrefsUtility.GetBoundsArray("bounds");
    }
Exemplo n.º 8
0
        public override void OnActivate(int pinID)
        {
            if (pinID != 120)
            {
                return;
            }
            int           lastSelectionIndex;
            PartyEditData loadTeamPreset = PartyUtility.LoadTeamPresets(PlayerPartyTypes.RankMatch, out lastSelectionIndex, false)[lastSelectionIndex];

            for (int index = 0; index < loadTeamPreset.PartyData.VSWAITMEMBER_START; ++index)
            {
                if (index + 1 > loadTeamPreset.Units.Length || loadTeamPreset.Units[index] == null)
                {
                    this.ActivateOutputLinks(201);
                    return;
                }
            }
            List <int> intList = new List <int>();

            for (int index = 0; index < loadTeamPreset.PartyData.VSWAITMEMBER_START; ++index)
            {
                int num = PlayerPrefsUtility.GetInt(PlayerPrefsUtility.RANKMATCH_ID_KEY + (object)index, -1);
                if (num >= 0)
                {
                    if (intList.Contains(num))
                    {
                        this.ActivateOutputLinks(202);
                        return;
                    }
                    intList.Add(num);
                }
            }
            this.ActivateOutputLinks(200);
        }
Exemplo n.º 9
0
        public void Set()
        {
            PlayerData player = MonoSingleton <GameManager> .Instance.Player;
            int        maxUnit;
            string     str;

            if (GlobalVars.SelectedMultiPlayVersusType == VERSUS_TYPE.RankMatch)
            {
                maxUnit = player.Partys[10].MAX_UNIT;
                str     = PlayerPrefsUtility.RANKMATCH_ID_KEY;
            }
            else
            {
                maxUnit = player.Partys[7].MAX_UNIT;
                str     = PlayerPrefsUtility.VERSUS_ID_KEY;
            }
            for (int idx = 0; idx < maxUnit; ++idx)
            {
                if (!PlayerPrefsUtility.HasKey(str + (object)idx))
                {
                    player.SetVersusPlacement(str + (object)idx, idx);
                }
            }
            PlayerPrefsUtility.Save();
        }
Exemplo n.º 10
0
    public void Save()
    {
        PlayerPrefsUtility.SetBool("bool", boolean);
        PlayerPrefsUtility.SetColor("color", color);
        PlayerPrefsUtility.SetColor32("color32", color32);
        PlayerPrefsUtility.SetVector2("vector2", vec2);
        PlayerPrefsUtility.SetVector3("vector3", vec3);
        PlayerPrefsUtility.SetVector4("vector4", vec4);
        PlayerPrefsUtility.SetQuaternion("quaternion", quat);

        PlayerPrefsUtility.SetMatrix4x4("matrix4x4", matrix);
        PlayerPrefsUtility.SetRect("rect", rect);
        PlayerPrefsUtility.SetBounds("bounds", bounds);

        //------------------------------------------------

        PlayerPrefsUtility.SetBoolArray("bool", booleanArray);
        PlayerPrefsUtility.SetIntArray("int", intArray);
        PlayerPrefsUtility.SetColorArray("color", colorArray);
        PlayerPrefsUtility.SetColor32Array("color32", color32Array);
        PlayerPrefsUtility.SetVector2Array("vector2", vec2Array);
        PlayerPrefsUtility.SetVector3Array("vector3", vec3Array);
        PlayerPrefsUtility.SetVector4Array("vector4", vec4Array);
        PlayerPrefsUtility.SetQuaternionArray("quaternion", quatArray);

        PlayerPrefsUtility.SetMatrix4x4Array("matrix4x4", matrixArray);
        PlayerPrefsUtility.SetRectArray("rect", rectArray);
        PlayerPrefsUtility.SetBoundsArray("bounds", boundsArray);
    }
Exemplo n.º 11
0
        private void UpdateSearch()
        {
            // Clear any existing cached search results
            filteredPlayerPrefs.Clear();

            // Don't attempt to find the search results if a search filter hasn't actually been supplied
            if (string.IsNullOrEmpty(searchFilter))
            {
                return;
            }

            int entryCount = deserializedPlayerPrefs.Count;

            // Iterate through all the cached results and add any matches to filteredPlayerPrefs
            for (int i = 0; i < entryCount; i++)
            {
                string fullKey    = deserializedPlayerPrefs[i].Key;
                string displayKey = fullKey;

                // Special case for encrypted keys in auto decrypt mode, search should use decrypted values
                bool isEncryptedPair = PlayerPrefsUtility.IsEncryptedKey(deserializedPlayerPrefs[i].Key);
                if (automaticDecryption && isEncryptedPair)
                {
                    displayKey = PlayerPrefsUtility.DecryptKey(fullKey);
                }

                // If the key contains the search filter (ToLower used on both parts to make this case insensitive)
                if (displayKey.ToLower().Contains(searchFilter.ToLower()))
                {
                    filteredPlayerPrefs.Add(deserializedPlayerPrefs[i]);
                }
            }
        }
Exemplo n.º 12
0
        public static void LoadTeamID(FlowNode_SelectParty.PartyTypes type)
        {
            switch (type)
            {
            case FlowNode_SelectParty.PartyTypes.Normal:
                int num1 = PlayerPrefsUtility.GetInt(PlayerPrefsUtility.TEAM_ID_KEY, 0);
                int num2 = num1 < 0 || num1 >= 9 ? 0 : num1;
                GlobalVars.SelectedPartyIndex.Set(num2);
                break;

            case FlowNode_SelectParty.PartyTypes.Multi:
                int num3 = PlayerPrefsUtility.GetInt(PlayerPrefsUtility.MULTI_PLAY_TEAM_ID_KEY, 0);
                int num4 = num3 < 0 || num3 >= 9 ? 0 : num3;
                GlobalVars.SelectedPartyIndex.Set(num4);
                break;

            case FlowNode_SelectParty.PartyTypes.Arena:
                int num5 = PlayerPrefsUtility.GetInt(PlayerPrefsUtility.ARENA_TEAM_ID_KEY, 0);
                int num6 = num5 < 0 || num5 >= 9 ? 0 : num5;
                GlobalVars.SelectedPartyIndex.Set(num6);
                break;

            case FlowNode_SelectParty.PartyTypes.ArenaDefense:
                int defensePartyIndex = MonoSingleton <GameManager> .Instance.Player.GetDefensePartyIndex();

                GlobalVars.SelectedPartyIndex.Set(defensePartyIndex);
                break;
            }
        }
Exemplo n.º 13
0
        public void ForceReloadFilter()
        {
            if (!Application.get_isPlaying() || !Object.op_Inequality((Object)this.mMenu, (Object)null))
            {
                return;
            }
            string str = (string)null;

            if (!string.IsNullOrEmpty(this.MenuID))
            {
                str = !PlayerPrefsUtility.HasKey(this.MenuID) ? this.mMenu.SortMethod : PlayerPrefsUtility.GetString(this.MenuID, string.Empty);
                string method = PlayerPrefsUtility.GetString(this.MenuID, string.Empty);
                this.mMenu.IsAscending = PlayerPrefsUtility.GetInt(this.MenuID + "#", 0) != 0;
                if (this.mMenu.Contains(method))
                {
                    this.mMenu.SortMethod = method;
                }
                string key = this.MenuID + "&";
                if (PlayerPrefsUtility.HasKey(key))
                {
                    this.mMenu.SetFilters(PlayerPrefsUtility.GetString(key, string.Empty).Split('|'), true);
                }
            }
            this.mMenu.SaveState();
            if (!Object.op_Inequality((Object)this.Caption, (Object)null))
            {
                return;
            }
            this.Caption.set_text(this.mMenu.CurrentCaption);
        }
Exemplo n.º 14
0
        protected virtual void Start()
        {
            ((UIBehaviour)this).Start();
            if (!Application.get_isPlaying() || !Object.op_Inequality((Object)this.mMenu, (Object)null))
            {
                return;
            }
            string method = (string)null;

            if (!string.IsNullOrEmpty(this.MenuID))
            {
                string str = !PlayerPrefsUtility.HasKey(this.MenuID) ? this.mMenu.SortMethod : PlayerPrefsUtility.GetString(this.MenuID, string.Empty);
                method = PlayerPrefsUtility.GetString(this.MenuID, string.Empty);
                this.mMenu.IsAscending = PlayerPrefsUtility.GetInt(this.MenuID + "#", 0) != 0;
                if (this.mMenu.Contains(method))
                {
                    this.mMenu.SortMethod = method;
                }
                string key = this.MenuID + "&";
                if (PlayerPrefsUtility.HasKey(key))
                {
                    this.mMenu.SetFilters(PlayerPrefsUtility.GetString(key, string.Empty).Split('|'), true);
                }
            }
            this.mMenu.SaveState();
            if (Object.op_Inequality((Object)this.Caption, (Object)null))
            {
                this.Caption.set_text(this.mMenu.CurrentCaption);
            }
            this.UpdateTarget(method, this.mMenu.IsAscending);
        }
Exemplo n.º 15
0
    //装備品その他ロード
    void LoadData()
    {
        //最大階層更新
        _floor = GameController.floor;
        if (_floor > PlayerPrefs.GetInt("MaxFloor", 0))
        {
            PlayerPrefs.SetInt("MaxFloor", _floor);
        }

        item_dic   = PlayerPrefsUtility.LoadDict <string, int>("MonsterItem");
        weapon_dic = PlayerPrefsUtility.LoadDict <string, int>("WeaponItem");
        shirld_dic = PlayerPrefsUtility.LoadDict <string, int>("ShieldItem");
        friend_dic = PlayerPrefsUtility.LoadDict <string, string>("Friends");


        if (!PlayerPrefs.HasKey("PlayerSaveData"))
        {
            return;
        }
        string save_line = PlayerPrefs.GetString("PlayerSaveData");

        string[] save_part = save_line.Split('/');
        _name      = save_part[0];
        _Level     = int.Parse(save_part[1]);
        _exp       = int.Parse(save_part[2]);
        _max_exp   = int.Parse(save_part[3]);
        _maxLife   = int.Parse(save_part[4]);
        plus_power = int.Parse(save_part[5]);
        _def       = int.Parse(save_part[6]);
        _Max_mp    = int.Parse(save_part[7]);



        SetUpStatus();
    }
Exemplo n.º 16
0
    // Use this for initialization
    void Start()
    {
        loadingScene = GameObject.FindGameObjectWithTag("LoadingUI").gameObject.GetComponent <LoadingScene>();


        int i = GameController.floor / GameController.floor_space;

        if (isTitle)
        {
            return;
        }

        if (skyboxes[0] && skyboxes[1])
        {
            skyboxes[0].material = skybox_materials[i];
            skyboxes[1].material = skybox_materials[i];
        }


        LoadData();

        friend_now = PlayerPrefsUtility.LoadList <string>("NowFriends");
        //Friendの自動召喚
        if (friend_now.Count > 0)
        {
            for (int r = 0; r < friend_now.Count; r++)
            {
                FriendInstantiate(friend_now[r]);
            }
        }
    }
Exemplo n.º 17
0
    //##### 解放ミッション #####

    public static int OpenNextMission(int nowLevel, int nowStage)
    {
        int newLevel = -1;

        if (userOpenMissions[Common.PP.MISSION_LEVEL] != nowLevel)
        {
            return(newLevel);
        }
        if (userOpenMissions[Common.PP.MISSION_STAGE] != nowStage)
        {
            return(newLevel);
        }

        if (nowStage == Common.Mission.stageNpcNoDic.Count)
        {
            //NextLevel
            newLevel = nowLevel + 1;
            userOpenMissions[Common.PP.MISSION_LEVEL] = newLevel;
            userOpenMissions[Common.PP.MISSION_STAGE] = 1;
        }
        else
        {
            //NextStage
            userOpenMissions[Common.PP.MISSION_STAGE] = nowStage + 1;
        }
        PlayerPrefsUtility.SaveList <int>(Common.PP.OPEN_MISSIONS, userOpenMissions);
        PlayerPrefs.Save();

        return(newLevel);
    }
Exemplo n.º 18
0
        private void SendPlacementInfo()
        {
            MyPhoton pt = PunMonoSingleton <MyPhoton> .Instance;

            MyPhoton.MyPlayer myPlayer = pt.GetMyPlayer();
            if (myPlayer == null)
            {
                return;
            }
            JSON_MyPhotonPlayerParam param = JSON_MyPhotonPlayerParam.Parse(myPlayer.json);

            if (param.units != null)
            {
                for (int i = 0; i < param.units.Length; ++i)
                {
                    TacticsUnitController tacticsUnitController = this.m_Units.Find((Predicate <TacticsUnitController>)(data =>
                    {
                        if (data.Unit.OwnerPlayerIndex == pt.MyPlayerIndex)
                        {
                            return(data.UnitData.UnitParam.iname == param.units[i].unit.UnitParam.iname);
                        }
                        return(false);
                    }));
                    if (UnityEngine.Object.op_Inequality((UnityEngine.Object)tacticsUnitController, (UnityEngine.Object)null))
                    {
                        param.units[i].place = this.GetPlacementID(tacticsUnitController.Unit.x, tacticsUnitController.Unit.y);
                        PlayerPrefsUtility.SetInt(PlayerPrefsUtility.MULTITW_ID_KEY + (object)i, param.units[i].place, false);
                    }
                }
            }
            PlayerPrefsUtility.Save();
            pt.SetMyPlayerParam(param.Serialize());
        }
Exemplo n.º 19
0
    //##### ユーザー情報 #####

    //API用情報
    public static void SetApiInfo(string uuid, string password)
    {
        userInfo[Common.PP.INFO_UUID]     = uuid;
        userInfo[Common.PP.INFO_PASSWORD] = password;
        PlayerPrefsUtility.SaveDict <int, string>(Common.PP.USER_INFO, userInfo);
        PlayerPrefs.Save();
    }
Exemplo n.º 20
0
 public void UpdateMultiTowerPlacement(bool isDefault)
 {
     if (GlobalVars.SelectedMultiPlayRoomType != JSON_MyPhotonRoomParam.EType.TOWER)
     {
         return;
     }
     if (isDefault)
     {
         for (int index = 0; index < this.units.Length; ++index)
         {
             if (this.units[index] != null)
             {
                 this.units[index].place = (this.playerIndex - 1) * 2 + index;
                 PlayerPrefsUtility.SetInt(PlayerPrefsUtility.MULTITW_ID_KEY + (object)index, this.units[index].place, true);
             }
         }
     }
     else
     {
         for (int index = 0; index < this.units.Length; ++index)
         {
             if (this.units[index] != null)
             {
                 this.units[index].place = PlayerPrefsUtility.GetInt(PlayerPrefsUtility.MULTITW_ID_KEY + (object)index, 0);
             }
         }
     }
 }
Exemplo n.º 21
0
    public void SavePlayer()
    {
        for (int i = 0; i < cpfplayerArray.Length; i++)
        {
            if (cpfplayerArray[i] == "0" || cpfplayerArray[i] == _cpfTemp)
            {
                cpfplayerArray[i]    = _cpfTemp;
                nameplayerArray[i]   = _nameTemp;
                avatarPlayerArray[i] = _avatarTemp;
                answerPlayerArray[i] = "";
                PlayerPrefsUtility.SetStringArray("cpfArray", cpfplayerArray);
                PlayerPrefsUtility.SetStringArray("nameArray", nameplayerArray);
                PlayerPrefsUtility.SetIntArray("avatarArray", avatarPlayerArray);
                PlayerPrefsUtility.SetIntArray("pointsArray", pointsPlayerArray);
                PlayerPrefsUtility.SetStringArray("answerArray", answerPlayerArray);

                PlayerPrefs.SetInt("avatarSelect", avatarPlayerArray[i]);
                PlayerPrefs.SetString("cpfSelect", cpfplayerArray[i]);
                PlayerPrefs.SetString("nameSelect", nameplayerArray[i]);
                PlayerPrefs.SetInt("pointsSelect", pointsPlayerArray[i]);

                int[] temp = new int[13] {
                    99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99
                };
                PlayerPrefsUtility.SetIntArray(PlayerPrefs.GetString("cpfSelect"), temp);
                dadosPlayerManager.SetvalueInputs();
                break;
            }
        }
    }
Exemplo n.º 22
0
    public void DeletePerfilArray(string p_cpf)
    {
        for (int i = 0; i < cpfplayerArray.Length; i++)
        {
            if (i < cpfplayerArray.Length - 1)
            {
                if (cpfplayerArray[i] == p_cpf || cpfplayerArray[i] == "0")
                {
                    cpfplayerArray[i]    = cpfplayerArray[i + 1];
                    nameplayerArray[i]   = nameplayerArray[i + 1];
                    avatarPlayerArray[i] = avatarPlayerArray[i + 1];
                    pointsPlayerArray[i] = pointsPlayerArray[i + 1];
                    answerPlayerArray[i] = answerPlayerArray[i + 1];

                    nameplayerArray[i + 1]   = "name";
                    cpfplayerArray[i + 1]    = "0";
                    avatarPlayerArray[i + 1] = 99;
                    pointsPlayerArray[i + 1] = 0;
                    answerPlayerArray[i + 1] = "empty";
                }
            }
        }
        PlayerPrefsUtility.SetStringArray("cpfArray", cpfplayerArray);
        PlayerPrefsUtility.SetStringArray("nameArray", nameplayerArray);
        PlayerPrefsUtility.SetIntArray("avatarArray", avatarPlayerArray);
        PlayerPrefsUtility.SetIntArray("pointsArray", pointsPlayerArray);
        PlayerPrefsUtility.SetStringArray("answerArray", answerPlayerArray);
        if (PlayerPrefsUtility.GetIntArray(p_cpf + "quest") != null)
        {
            PlayerPrefs.DeleteKey(p_cpf + "quest");
        }

        LoadArrayPlayers();
    }
Exemplo n.º 23
0
 public void Save()
 {
     if (string.IsNullOrEmpty("CARD_FILTER"))
     {
         return;
     }
     PlayerPrefsUtility.SetString("CARD_FILTER", ((int)this.CurrentType).ToString(), true);
 }
Exemplo n.º 24
0
    private static int AddStartPower()
    {
        int startPower = RemoteSettings.GetInt("StartPowerValue", 20);

        PlayerPrefsUtility.SetEncryptedInt("StartPowerValueUsed", 1);
        PlayerPrefsUtility.SetEncryptedInt("CurrentPower", startPower);
        return(startPower);
    }
Exemplo n.º 25
0
 private void ResetPlacementParam()
 {
     for (int index = 0; index < this.MULTI_TOWER_UNIT_MAX; ++index)
     {
         PlayerPrefsUtility.SetInt(PlayerPrefsUtility.MULTITW_ID_KEY + (object)index, index, false);
     }
     PlayerPrefsUtility.Save();
 }
Exemplo n.º 26
0
 public static void BuyPack(int firstScene)
 {
     UnityEngine.Analytics.Analytics.CustomEvent("Pack bought",
                                                 new Dictionary <string, object> {
         { "pack", firstScene }
     });
     PlayerPrefsUtility.SetEncryptedInt("BoughtPack" + firstScene, 1);
 }
Exemplo n.º 27
0
    //##### ユーザーコンフィグ #####

    public static void SaveConfig(bool isSave = true)
    {
        PlayerPrefsUtility.SaveDict <int, int>(Common.PP.USER_CONFIG, userConfig);
        if (isSave)
        {
            PlayerPrefs.Save();
        }
    }
Exemplo n.º 28
0
 //DictionarySave
 public void SaveItem()
 {
     PlayerPrefsUtility.SaveDict <string, int>("MonsterItem", item_dic);
     PlayerPrefsUtility.SaveDict <string, int>("WeaponItem", weapon_dic);
     PlayerPrefsUtility.SaveDict <string, int>("ShieldItem", shirld_dic);
     PlayerPrefsUtility.SaveList <string>("NowFriends", friend_now);
     SaveFriendDic();
 }
Exemplo n.º 29
0
 public static void UpdateBeforePubInfo()
 {
     if (LoginNewsInfo.mPubinfo == null)
     {
         return;
     }
     PlayerPrefsUtility.SetString(GameUtility.BEFORE_LOGIN_NEWS_INFO_TOKEN, LoginNewsInfo.mPubinfo.token, false);
 }
Exemplo n.º 30
0
 public static void SetStarsForLevel(int level, int stars)
 {
     if ((stars - GetStarsForLevel(level)) > 0)
     {
         AddAvailableStars(stars - GetStarsForLevel(level));
         PlayerPrefsUtility.SetEncryptedInt(GetLevelPrefName(level), stars);
     }
 }