更新
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Cielonos.MainGame.Inventory;
|
||||
using SLSFramework.UI;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Cielonos.UI
|
||||
@@ -8,8 +9,9 @@ namespace Cielonos.UI
|
||||
public class MainWeaponFunctionIcon : UIElementBase
|
||||
{
|
||||
public RuntimeFunctionUnit functionUnit;
|
||||
public Image timerFillImage;
|
||||
[FormerlySerializedAs("timerFillImage")] public Image frame;
|
||||
public Image iconImage;
|
||||
public Image timer;
|
||||
|
||||
public void Initialize(RuntimeFunctionUnit functionUnit)
|
||||
{
|
||||
@@ -30,7 +32,7 @@ namespace Cielonos.UI
|
||||
fillAmount = 1f - functionUnit.currentCooldown / functionUnit.maxCooldown;
|
||||
}
|
||||
|
||||
timerFillImage.fillAmount = fillAmount;
|
||||
frame.fillAmount = fillAmount;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user