Skip to content

Commit

Permalink
Fix score for totalScore resource maching lock
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos2380 committed Oct 3, 2018
1 parent feabbb0 commit 9646785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShowPT/Assets/Scripts/ResourceMachineController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void updateUI()
costLayer.SetActive(true);
costText.text = actualResources[indexActualResource].cost.ToString();
lockImage.gameObject.SetActive(true);
if (score < actualResources[indexActualResource].cost)
if (scoreController.getTotalScore() < actualResources[indexActualResource].cost)
{
lockImage.sprite = locked;
}
Expand Down

0 comments on commit 9646785

Please sign in to comment.