/// <summary> /// (Cross-Game compatible) Add a Behavior to this /// </summary> /// <typeparam name="T">The Behavior you want to add</typeparam> /// <param name="model"></param> /// <param name="behavior"></param> public static void AddBehavior <T>(this TowerModel model, T behavior) where T : Model { model.behaviors = model.behaviors.AddTo(behavior); model.AddChildDependant(behavior); }