public static float CooldownTime(CooldownActionType type) { switch (type) { case CooldownActionType.Click: return(ClickCooldownTime); case CooldownActionType.FaceDirection: return(FaceDirectionCooldown); case CooldownActionType.SitStand: return(SitStandCooldown); case CooldownActionType.StopAction: return(StopActionCooldown); default: ServerLogger.LogWarning($"Could not get ActionDelay Cooldown for type {type} (value {(int)type}."); return(0.3f); } }
public void AddActionDelay(CooldownActionType type) => CurrentCooldown += ActionDelay.CooldownTime(type);