예제 #1
0
 public Cooldown(float maximum, IDestroyTracker tracker)
 {
     _maximum = maximum;
     _progress = maximum;
     _isReady = true;
     CooldownManager.AddCooldown(this);
     tracker.OnObjectDestroy += OnDestroy;
 }
예제 #2
0
 public Cooldown(float maximum, IDestroyTracker tracker, bool resetAndStop)
     : this(maximum, tracker)
 {
     ResetAndStop();
 }