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