Add an Upgrade
1
2
3
Filling asset fields
Select the upgrade you just created, and fill the following fields:
Field
Description
Upgrade Type
Select the type from step 1
Icon
Select the sprite that will be shown in upgrades menu
Title
The display name of the upgrade in upgrades menu
Dev Start Level
This upgrade level will be active at launch, use it for testing purposes. Default value is -1
Levels
The levels of the upgrade. Each has cost and value fields
4
5
Implementing upgrade
Now that the upgrade is created, you need to write the custom implementation of its behavior inside the game. Use the following method from anywhere in the project:
GameController.UpgradesManager.GetUpgadeValue(UpgradeType.Upgrade)
GameController.UpgradesManager.IsUpgradeAquired(UpgradeType.Upgrade)
GameController.UpgradesManager.GetUpgradeLevel(UpgradeType.Upgrade)
GameController.UpgradesManager.GetUpgradeData(UpgradeType.Upgrade)
Last updated