根据提供的code differences信息,由于没有具体的代码变更内容,我将生成一个通用的commit message模板:
``` docs(changelog): 更新项目变更日志 - 添加新的版本记录 - 修正已知问题描述 - 更新功能特性说明 ``` 注意:由于您提供的code differences部分为空,以上是一个示例模板。实际使用时请根据具体的代码变更内容来填写相应的type、scope、subject和body信息。
This commit is contained in:
1 parent
69f33d8637
commit
951ba49c79
26 files changed
+942
-455
No files matched your search
@@ -484,9 +484,16 @@ public class WorldHealthBar : MonoBehaviour
|
||||
|
||||
private Color GetHealthFillColor()
|
||||
{
|
||||
return CompareTag("Enemy")
|
||||
? new Color(0.88f, 0.12f, 0.12f, 1f)
|
||||
: new Color(0.1f, 0.8f, 0.18f, 1f);
|
||||
// 使用阵营 ID 判断敌我(支持 PVP)
|
||||
var unitTeam = GetComponent<UnitTeam>();
|
||||
if (unitTeam != null && unitTeam.IsLocalPlayerTeam())
|
||||
{
|
||||
return new Color(0.1f, 0.8f, 0.18f, 1f); // 绿色(我方)
|
||||
}
|
||||
else
|
||||
{
|
||||
return new Color(0.88f, 0.12f, 0.12f, 1f); // 红色(敌方)
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetEnergyFillColor()
|
||||
|
||||
Reference in new issue
Block a user