Table of Contents
Extensions for ProfileModels
public static class ProfileModelExt
Inheritance System.Object ProfileModelExt
Add a tower to the list of UnlockedTowers only if the TowerModel is in Game.instance.model.towers
public static bool UnlockTower(this ProfileModel profileModel, string towerId, bool unlockIfTowerModelExists);
profileModel
Il2CppAssets.Scripts.Models.Profile.ProfileModel
towerId
System.String
The ID of the tower you want to unlock
unlockIfTowerModelExists
System.Boolean
If set to true the TowerModel will only be unlocked if it has been registered in
the game
System.Boolean
Returns whether or not the tower was unlocked
Add a tower to the list of UnlockedTowers
public static void UnlockTower(this ProfileModel profileModel, string towerId);
profileModel
Il2CppAssets.Scripts.Models.Profile.ProfileModel
towerId
System.String
The ID of the tower you want to unlock