Пример #1
0
        /// <summary>
        /// Not Tested. Use to set the maximum allowed number of this tower
        /// </summary>
        public static void SetMaxAmount(this TowerModel towerModel, int max)
        {
            towerModel.GetTowerDetailsModel().towerCount = max;
            var details = Game.instance?.model.towerSet;

            InGame.instance.GetTowerInventory()
            .SetTowerMaxes(details.Cast <Il2CppSystem.Collections.Generic.IEnumerable <TowerDetailsModel> >());
        }
Пример #2
0
 /// <summary>
 /// Not Tested. Use to set the maximum allowed number of this tower
 /// </summary>
 public static void SetMaxAmount(this TowerModel towerModel, int max)
 {
     towerModel.GetTowerDetailsModel().towerCount = max;
     Il2CppSystem.Collections.Generic.List <TowerDetailsModel> details = Game.instance?.model.GetAllTowerDetails();
     InGame.instance.GetTowerInventory().SetTowerMaxes(details);
 }