public void Start() { if (IsRecastable()) { if (timeCooldown != null) { timeCooldown.ConsumeRecast(); } return; } currentCharge--; //DLog.Log("Current charge: " + currentCharge); TimeCooldown cooldown = new TimeCooldown(Duration()); timeCooldowns.Enqueue(cooldown); cooldown.Start(); }
protected override void DoConsume() { timeCooldown.Start(); }