예제 #1
0
 public void Remove(Cooldown cooldown)
 {
     CooldownDictionary.TryRemove(cooldown.Id, out _);
     cooldown.Id = -1;
 }
예제 #2
0
 public void Add(Cooldown cooldown)
 {
     cooldown.Id = GetNextId();
     CooldownDictionary.TryAdd(cooldown.Id, cooldown);
 }