mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
add InitialCooldown property to buttons
This commit is contained in:
1 parent
96f108ab92
commit
c32eabcdff
1 file changed
+6
-1
@@ -19,6 +19,11 @@ public abstract class CustomActionButton
|
||||
/// </summary>
|
||||
public abstract string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the initial cooldown duration in seconds.
|
||||
/// </summary>
|
||||
public virtual float InitialCooldown => Cooldown;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the button's cooldown duration in seconds.
|
||||
/// </summary>
|
||||
@@ -82,7 +87,7 @@ public abstract class CustomActionButton
|
||||
}
|
||||
|
||||
UsesLeft = MaxUses;
|
||||
Timer = Cooldown;
|
||||
Timer = InitialCooldown;
|
||||
EffectActive = false;
|
||||
|
||||
Button = Object.Instantiate(HudManager.Instance.AbilityButton, parent);
|
||||
|
||||
Reference in new issue
Block a user