重构
This commit is contained in:
@@ -42,6 +42,9 @@ namespace IndianOceanAssets.Engine2_5D
|
||||
/// <summary>冷却剩余时间(供 UI 使用)</summary>
|
||||
public float CooldownRemaining => Mathf.Max(0f, (_lastPlaceTime + cooldown) - Time.time);
|
||||
|
||||
/// <summary>冷却总时长(供 UI 计算 CD 比例,替代反射读取私有字段)</summary>
|
||||
public float Cooldown => cooldown;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_remainingLanterns = maxLanterns;
|
||||
|
||||
Reference in New Issue
Block a user