Ejemplo n.º 1
0
 static void CheckRemoveModel(Player p, string modelName)
 {
     lock (SentCustomModels) {
         var sentModels = SentCustomModels[p.name];
         if (sentModels.Contains(modelName))
         {
             var storedModel = new StoredCustomModel(modelName);
             if (storedModel.Exists())
             {
                 storedModel.Undefine(p);
                 sentModels.Remove(modelName);
             }
         }
     }
 }