Esempio n. 1
0
 /// <summary>
 /// Removes a grenade from the list.
 /// </summary>
 public static void Unregister(Grenade grenade)
 {
     if (_list.Contains(grenade))
     {
         _list.Remove(grenade);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a grenade to the list.
 /// </summary>
 public static void Register(Grenade grenade)
 {
     if (!_list.Contains(grenade))
     {
         _list.Add(grenade);
     }
 }