Exemplo n.º 1
0
 public static void RemoveProfile(PvPProfile profile)
 {
     if (profile != null && Profiles.GetValue(profile.Owner) == profile && Profiles.Remove(profile.Owner))
     {
         profile.OnRemoved();
     }
 }
Exemplo n.º 2
0
        public static void RemoveProfile(PvPProfile profile)
        {
            if (!Profiles.ContainsKey(profile.Owner))
            {
                return;
            }

            Profiles.Remove(profile.Owner);
            profile.OnRemoved();
        }