/// <summary> /// (Cross-Game compatible) Remove the first Behavior of type T /// </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 WeaponModel model, T behavior) where T : Model { model.behaviors = model.behaviors.RemoveItem(behavior); model.RemoveChildDependant(behavior); }