Пример #1
0
 void Update()
 {
     levelLabel.text     = player.Level.ToString();
     expBar.MaxValue     = GlobalValues.GetRequireredExpForNextLevel(player.Level);
     expBar.CurrentValue = player.Experience;
     hpBar.MaxValue      = player.MaxHP;
     hpBar.CurrentValue  = player.HealthPoints;
     mpBar.MaxValue      = player.MaxMP;
     mpBar.CurrentValue  = player.MagicPoints;
 }