Skip to content

Commit 17618ac

Browse files
committed
update sample
1 parent fc8505c commit 17618ac

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

Samples~/Example/Data/RabbitManager.asset

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,12 @@ MonoBehaviour:
3434
- {fileID: 11400000, guid: 8426f76df65329242a03f0b20e2b4172, type: 2}
3535
BuildingCostIncrease: 0.15
3636
State:
37-
_earnedBuildings:
38-
- _serializedGuid: d4dc22f4-c75d-4dbb-bfe1-b4dac26139c2
39-
- _serializedGuid: baaa0917-a398-4d76-b835-a6bce8c048b5
40-
- _serializedGuid: 9e14c276-c13d-46d1-b2cb-473ec3d504bd
41-
_earnedBuildingsCount: 0a0000000a0000000a000000
42-
_earnedUpgrades:
43-
- _serializedGuid: 0b05999c-6dab-4540-afef-f01d210fd8b4
44-
- _serializedGuid: b9fe14ae-9f06-498e-a672-3f7f93abf79d
45-
- _serializedGuid: bd2cb437-6ee2-4695-a7dc-539465645a2b
46-
- _serializedGuid: e67f9e40-57b3-4814-80b5-7bf7d76b40f4
47-
_currencies:
48-
- _serializedGuid: 2792f0e8-9163-4c3a-9b0d-4e2b7c651639
49-
_currencyCurrentTotals:
50-
- 9988053
51-
_currencyHistoricalTotals:
52-
- 10004255
37+
_earnedBuildings: []
38+
_earnedBuildingsCount:
39+
_earnedUpgrades: []
40+
_currencies: []
41+
_currencyCurrentTotals: []
42+
_currencyHistoricalTotals: []
5343
OnTick:
5444
m_PersistentCalls:
5545
m_Calls:

Samples~/Example/Scripts/UI/Binder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void Bind(Upgrade availableUpgrade)
2828
{
2929
_clickerComponent = availableUpgrade;
3030
this.Name.text = availableUpgrade.name;
31-
this.Cost.text = availableUpgrade.Cost.Amount.ToString();
31+
this.Cost.text = availableUpgrade.Cost.ToString();
3232
this.Description.text = GenerateUpgradeString(availableUpgrade.UpgradePerk);
3333
_button = this.GetComponent<Button>();
3434
_clickerManager.OnTick.AddListener(IsActive);

Samples~/Example/Scripts/UI/PopulateUpgrades.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ public class PopulateUpgrades : MonoBehaviour
1010

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

13-
// Use this for initialization
1413
void Start()
1514
{
1615
for (int i = 0; i < _clickerManager.Config.AvailableUpgrades.Length; i++)

Samples~/Example/test.unity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ PrefabInstance:
565565
- target: {fileID: 4605584487622408764, guid: 1f34cc177f72f1a4396745b11e1b89ed,
566566
type: 3}
567567
propertyPath: m_AnchoredPosition.y
568-
value: -0.000061035156
568+
value: 0.000030517578
569569
objectReference: {fileID: 0}
570570
- target: {fileID: 4605584488507518794, guid: 1f34cc177f72f1a4396745b11e1b89ed,
571571
type: 3}

0 commit comments

Comments
 (0)