```
docs(clipboard): 添加剪贴板功能相关图片资源 添加了两个剪贴板功能的截图文件,用于文档说明和功能展示。 ```
This commit is contained in:
1 parent
47f01ecd2e
commit
f93d69d8ee
77 files changed
+5482
-307
No files matched your search
@@ -125,6 +125,23 @@ public class UnitBase : MonoBehaviour
|
||||
|
||||
|
||||
// Start is called before the first frame update
|
||||
public void InitializeFromPlayerData(float health, float attack, float moveSpeed)
|
||||
{
|
||||
attackPower = attack;
|
||||
speed = moveSpeed;
|
||||
|
||||
if (worldHealthBar == null)
|
||||
{
|
||||
worldHealthBar = GetComponent<WorldHealthBar>();
|
||||
}
|
||||
|
||||
if (worldHealthBar != null)
|
||||
{
|
||||
worldHealthBar.maxHealth = health;
|
||||
worldHealthBar.currentHealth = health;
|
||||
}
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
//初始化
|
||||
|
||||
Reference in new issue
Block a user