/// <summary> /// (Cross-Game compatible) Return all AbilityModel behaviors from this tower, if it has any /// </summary> public static List <AbilityModel> GetAbilites(this TowerModel towerModel) { return(towerModel.GetAbilities()); }
/// <summary> /// (Cross-Game compatible) Return the first ability on the tower /// </summary> public static AbilityModel GetAbility(this TowerModel towerModel) { return(towerModel.GetAbilities().FirstOrDefault()); }
/// <summary> /// (Cross-Game compatible) Return a specific Ability of the tower. /// </summary> /// <param name="index">Index of the ability you want.</param> public static AbilityModel GetAbility(this TowerModel towerModel, int index) { return(towerModel.GetAbilities()[index]); }