}// UpgradeOperation_end /// <summary> /// UpgradeRuleOperation /// </summary> /// <param name="hp"></param> /// <param name="mp"></param> /// <param name="ATK"></param> /// <param name="DEF"></param> /// <param name="DEX"></param> private void UpgradeRuleOperation(float maxhp, float maxmp, float maxATK, float maxDEF, float maxDEX) { PlayerSaveDataProxy.GetInstance().IncreaseMaxHealth(maxhp); PlayerSaveDataProxy.GetInstance().IncreaseMaxMagic(maxmp); PlayerSaveDataProxy.GetInstance().IncreaseMaxATK(maxATK); PlayerSaveDataProxy.GetInstance().IncreaseMaxDEF(maxDEF); PlayerSaveDataProxy.GetInstance().IncreaseMaxDEX(maxDEX); PlayerSaveDataProxy.GetInstance().IncreaseHealthValues(PlayerSaveDataProxy.GetInstance().GetMaxHealth()); PlayerSaveDataProxy.GetInstance().IncreaseMagicValues(PlayerSaveDataProxy.GetInstance().GetMaxMagic()); }
public const int ENEMY_MIN_ATK = 1; //enemy lowest damage /// <summary> /// Constructor /// </summary> /// <param name="health"></param> /// <param name="magic"></param> /// <param name="ATK"></param> /// <param name="DEF"></param> /// <param name="DEX"></param> /// <param name="maxHealth"></param> /// <param name="maxMagic"></param> /// <param name="maxATK"></param> /// <param name="maxDEF"></param> /// <param name="maxDEX"></param> /// <param name="ATKByProp"></param> /// <param name="DEFByProp"></param> /// <param name="DEXByProp"></param> public PlayerSaveDataProxy(float health, float magic, float ATK, float DEF, float DEX, float maxHealth, float maxMagic, float maxATK, float maxDEF, float maxDEX, float ATKByProp, float DEFByProp, float DEXByProp) : base(health, magic, ATK, DEF, DEX, maxHealth, maxMagic, maxATK, maxDEF, maxDEX, ATKByProp, DEFByProp, DEXByProp) { if (_Instance == null) { _Instance = this; } else { Debug.LogError(GetType() + "/PlayerSaveDataProxy()/it's not instance check again"); } }