Skip to content

Commit

Permalink
update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
philipcass committed Apr 24, 2020
1 parent fc8505c commit 17618ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
22 changes: 6 additions & 16 deletions Samples~/Example/Data/RabbitManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,12 @@ MonoBehaviour:
- {fileID: 11400000, guid: 8426f76df65329242a03f0b20e2b4172, type: 2}
BuildingCostIncrease: 0.15
State:
_earnedBuildings:
- _serializedGuid: d4dc22f4-c75d-4dbb-bfe1-b4dac26139c2
- _serializedGuid: baaa0917-a398-4d76-b835-a6bce8c048b5
- _serializedGuid: 9e14c276-c13d-46d1-b2cb-473ec3d504bd
_earnedBuildingsCount: 0a0000000a0000000a000000
_earnedUpgrades:
- _serializedGuid: 0b05999c-6dab-4540-afef-f01d210fd8b4
- _serializedGuid: b9fe14ae-9f06-498e-a672-3f7f93abf79d
- _serializedGuid: bd2cb437-6ee2-4695-a7dc-539465645a2b
- _serializedGuid: e67f9e40-57b3-4814-80b5-7bf7d76b40f4
_currencies:
- _serializedGuid: 2792f0e8-9163-4c3a-9b0d-4e2b7c651639
_currencyCurrentTotals:
- 9988053
_currencyHistoricalTotals:
- 10004255
_earnedBuildings: []
_earnedBuildingsCount:
_earnedUpgrades: []
_currencies: []
_currencyCurrentTotals: []
_currencyHistoricalTotals: []
OnTick:
m_PersistentCalls:
m_Calls:
Expand Down
2 changes: 1 addition & 1 deletion Samples~/Example/Scripts/UI/Binder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void Bind(Upgrade availableUpgrade)
{
_clickerComponent = availableUpgrade;
this.Name.text = availableUpgrade.name;
this.Cost.text = availableUpgrade.Cost.Amount.ToString();
this.Cost.text = availableUpgrade.Cost.ToString();
this.Description.text = GenerateUpgradeString(availableUpgrade.UpgradePerk);
_button = this.GetComponent<Button>();
_clickerManager.OnTick.AddListener(IsActive);
Expand Down
1 change: 0 additions & 1 deletion Samples~/Example/Scripts/UI/PopulateUpgrades.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class PopulateUpgrades : MonoBehaviour

[NonSerialized] private List<Binder> _objects = new List<Binder>();

// Use this for initialization
void Start()
{
for (int i = 0; i < _clickerManager.Config.AvailableUpgrades.Length; i++)
Expand Down
2 changes: 1 addition & 1 deletion Samples~/Example/test.unity
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ PrefabInstance:
- target: {fileID: 4605584487622408764, guid: 1f34cc177f72f1a4396745b11e1b89ed,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -0.000061035156
value: 0.000030517578
objectReference: {fileID: 0}
- target: {fileID: 4605584488507518794, guid: 1f34cc177f72f1a4396745b11e1b89ed,
type: 3}
Expand Down

0 comments on commit 17618ac

Please sign in to comment.