private void DisPlayerInfo(GlobalParametr.KeyValuesUpdate kv) { switch (kv.Key) { case "Health": TextCurHp.text = kv.Values.ToString(); TextCurHpByScreen.text = kv.Values.ToString(); SliderCyrrentHp.fillAmount = (float)PlayerKernalDataProxy.GetInstance().Health / PlayerKernalDataProxy.GetInstance().MaxHealth; break; case "MaxHealth": TextMaxHp.text = kv.Values.ToString(); TextMaxHpByScreen.text = kv.Values.ToString(); SliderCyrrentHp.fillAmount = (float)PlayerKernalDataProxy.GetInstance().Health / PlayerKernalDataProxy.GetInstance().MaxHealth; break; case "Magic": TextCurMp.text = kv.Values.ToString(); TextCurMpByScreen.text = kv.Values.ToString(); SliderCyrrentMp.fillAmount = (float)PlayerKernalDataProxy.GetInstance().Magic / PlayerKernalDataProxy.GetInstance().MaxMagic; break; case "MaxMagic": TextMaxMp.text = kv.Values.ToString(); TextMaxMpByScreen.text = kv.Values.ToString(); SliderCyrrentMp.fillAmount = (float)PlayerKernalDataProxy.GetInstance().Magic / PlayerKernalDataProxy.GetInstance().MaxMagic; break; case "Attack": TextCurATK.text = kv.Values.ToString(); break; case "MaxAttack": TextMaxATK.text = kv.Values.ToString(); break; case "Defence": TextCurDEF.text = kv.Values.ToString(); break; case "MaxDefence": TextMaxDEF.text = kv.Values.ToString(); break; case "MaxDexterity": TextMaxDex.text = kv.Values.ToString(); break; case "Level": TextLevel.text = kv.Values.ToString(); TextCurrentLevelByScreen.text = kv.Values.ToString(); break; case "LevelExperience": TextLevelExp.text = kv.Values.ToString(); break; case "Experience": TextExp.text = kv.Values.ToString(); TextExpByScreen.text = kv.Values.ToString(); break; case "KillNumber": TextKillNum.text = kv.Values.ToString(); break; case "Gold": TextGold.text = kv.Values.ToString(); TextGoldByScreen.text = kv.Values.ToString(); break; case "Dexterity": TextDex.text = kv.Values.ToString(); break; case "Diamonds": TextDiamondsByScreen.text = kv.Values.ToString(); TextDiamonds.text = kv.Values.ToString(); break; } }
public void Test(GlobalParametr.KeyValuesUpdate ke) { evePlayerExtenalData(ke); }