漏上传,补充
This commit is contained in:
@@ -58,6 +58,17 @@ namespace TcgEngine
|
||||
return Mathf.FloorToInt(xp / 1000) + 1;
|
||||
}
|
||||
|
||||
public float GetLevelProgress()
|
||||
{
|
||||
int currentLeve = GetLevel();
|
||||
int baseXp = (currentLeve - 1) * 1000;
|
||||
Debug.LogError(xp);
|
||||
// 距离下一级还需多少经验值
|
||||
int xpIntoCurrentLevel = xp - baseXp;
|
||||
return (float)xpIntoCurrentLevel / 1000f;
|
||||
|
||||
}
|
||||
|
||||
public string GetAvatar()
|
||||
{
|
||||
if (avatar != null)
|
||||
|
||||
Reference in New Issue
Block a user