コード例 #1
0
 /// <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 BloonModel model, T behavior) where T : Model
 {
     model.behaviors = model.behaviors.RemoveItem(behavior);
     model.RemoveChildDependant(behavior);
 }