示例#1
0
 public Model_PlayerKernalDataProxy(float hp, float mp, float attack, float defence, float dextrity,
                                    float maxhp, float maxmp, float maxattack, float maxdefence, float maxdextrity,
                                    float propattack, float propdefence, float propdextrity)
     : base(hp, mp, attack, defence, dextrity, maxhp, maxmp, maxattack, maxdefence, maxdextrity, propattack, propdefence, propdextrity)
 {
     if (_Instance == null)
     {
         _Instance = this;
     }
     else
     {
     }
 }
示例#2
0
        private void UpgradeRuleOperation(float maxhp, float maxmp, float maxattack, float maxdef, float maxdex)
        {
            Model_PlayerKernalDataProxy.GetInstance().MaxHealthValuePlus(maxhp);
            Model_PlayerKernalDataProxy.GetInstance().MaxMPValuePlus(maxmp);
            Model_PlayerKernalDataProxy.GetInstance().IncreaseMaxATKValue(maxattack);
            Model_PlayerKernalDataProxy.GetInstance().IncreaseMaxDefValue(maxdef);
            Model_PlayerKernalDataProxy.GetInstance().IncreaseMaxDexValue(maxdex);

            Model_PlayerKernalDataProxy.GetInstance().HealthValuePlus(Model_PlayerKernalDataProxy.GetInstance().GetMaxHealthValue());
            Model_PlayerKernalDataProxy.GetInstance().MPValuePlus(Model_PlayerKernalDataProxy.GetInstance().GetMaxMPValue());
            Model_PlayerKernalDataProxy.GetInstance().UpdateAttackValue(Model_PlayerKernalDataProxy.GetInstance().GetMaxATKValue());
            Model_PlayerKernalDataProxy.GetInstance().UpdateDefenceValue(Model_PlayerKernalDataProxy.GetInstance().GetMaxDefValue());
            Model_PlayerKernalDataProxy.GetInstance().UpdateDexValue(Model_PlayerKernalDataProxy.GetInstance().GetMaxDexValue());
        }