/// <summary> /// Tries to unregister this role. /// </summary> /// <returns>True if the role is unregistered properly.</returns> public bool TryUnregister() { Destroy(); if (!Registered.Remove(this)) { Log.Warn($"Cannot unregister {Name} ({Id}) [{Role}], it hasn't been registered yet."); return(false); } return(true); }