Esempio n. 1
0
        public override string ToString()
        {
            var hearts = Hearts == 0.0 ? "none" : Hearts.ToString();

            return($"Recipe {{ Type = '{Type}', Name = '{Name}', Hearts = {hearts}, " +
                   $"Effects = {Helpers.ArrayToString(Effects)}, Ingredients = {Helpers.ArrayToString(Ingredients)} }}");
        }
Esempio n. 2
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());
            }
        }
 // Update is called once per frame
 void Update()
 {
     ToeTxt.text   = Toes.ToString() + "/" + TotalToes.ToString();
     BrainTxt.text = Brains.ToString() + "/" + TotalBrains.ToString();
     HeartTxt.text = Hearts.ToString() + "/" + TotalHearts.ToString();
 }