Ejemplo n.º 1
0
        public static void SaveStore()
        {
            WebGLJump.SaveData(SaveKeys.Money, Money.ToString());
            WebGLJump.SaveData(SaveKeys.Hearts, Hearts.ToString());
            WebGLJump.SaveData(SaveKeys.Armor, Armor.ToString());
            WebGLJump.SaveData(SaveKeys.Healing, Healing.ToString());

            for (int i = 0; i < GunOwned.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.GunOwned + i.ToString(), GunOwned[i].ToString());
            }
            for (int i = 0; i < GunPower.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.GunPower + i.ToString(), GunPower[i].ToString());
            }
            for (int i = 0; i < GunEquipped.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.GunEquipped + i.ToString(), GunEquipped[i].ToString());
            }
        }