```
docs(clipboard): 添加剪贴板功能相关图片资源 添加了两个剪贴板功能的截图文件,用于文档说明和功能展示。 ```
This commit is contained in:
1 parent
47f01ecd2e
commit
f93d69d8ee
77 files changed
+5482
-307
No files matched your search
@@ -0,0 +1,34 @@
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class PlayerCharacterData
|
||||
{
|
||||
public string characterId;
|
||||
public int level = 1;
|
||||
public int starLevel = 0;
|
||||
|
||||
public PlayerCharacterData(string id, int lvl = 1, int star = 0)
|
||||
{
|
||||
characterId = id;
|
||||
level = lvl;
|
||||
starLevel = star;
|
||||
}
|
||||
|
||||
public float GetMaxHealth(CharacterData baseData)
|
||||
{
|
||||
if (baseData == null) return 100f;
|
||||
return baseData.GetMaxHealth(level);
|
||||
}
|
||||
|
||||
public float GetAttackPower(CharacterData baseData)
|
||||
{
|
||||
if (baseData == null) return 10f;
|
||||
return baseData.GetAttackPower(level);
|
||||
}
|
||||
|
||||
public float GetMoveSpeed(CharacterData baseData)
|
||||
{
|
||||
if (baseData == null) return 3f;
|
||||
return baseData.GetMoveSpeed(level);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user