Ejemplo n.º 1
0
 /// <summary>
 /// (Cross-Game compatible) Removes a specific behavior from a tower
 /// </summary>
 /// <typeparam name="T">The Behavior you want to remove</typeparam>
 /// <param name="model"></param>
 /// <param name="behavior"></param>
 public static void RemoveBehavior <T>(this TowerModel model, T behavior) where T : Model
 {
     model.behaviors = model.behaviors.RemoveItem(behavior);
     model.RemoveChildDependant(behavior);
 }