コード例 #1
0
        public void UnlockPlayerModule(PlayerModule module, int maxPoints)
        {
            if (!Data.PlayerModules.ContainsKey(module.StatName))
            {
                Data.PlayerModules.Add(module.StatName, module.GetModuleData());
            }
            else if (maxPoints > Data.PlayerModules[module.StatName].MaxPoints)
            {
                Data.PlayerModules[module.StatName].MaxPoints = maxPoints;
            }

            RefreshWeapons();
            SaveWeapons();
        }