Exemplo n.º 1
0
 void DebugLevelUp(LevelUp lvlUp)
 {
     int debugLevel = level + lvlUp.level;
     Debug.Log(string.Format("<b><color=purple>LEVEL UP! (Level {0})</color></b>", debugLevel));
     Debug.Log(string.Format("HP:+{0} MP:+{1}",
         lvlUp.GetGrowth("MaxHP"),
         lvlUp.GetGrowth("MaxMP")));
     Debug.Log(string.Format("Atk:+{0} Def:+{1} Str:+{2} Mag:+{3} Spd:+{4} Lck:+{5}",
         lvlUp.GetGrowth("Attack"),
         lvlUp.GetGrowth("Defense"),
         lvlUp.GetGrowth("Strength"),
         lvlUp.GetGrowth("Magic"),
         lvlUp.GetGrowth("Speed"),
         lvlUp.GetGrowth("Luck")));
     Debug.Log(string.Format("***XP TO NEXT LEVEL: {0}***", GetXPtoNextLevel(debugLevel)));
 }