Files
butchers-games-test/Assets/Scripts/Game/UI/UICoins.cs
T
Boris Nikolaev 5f1e94b653 add project files
2026-08-14 01:58:31 +03:00

17 lines
456 B
C#

public class UICoins : UIInventoryCount
{
public override void Setup(AppController appController)
{
base.appController = appController;
RefreshCurrency();
counter.Init(appController.GetCurrencies());
appController.onCurrenciesChanged.AddListener(RefreshCurrency);
appController.coreGame.currenciesController.onWinCurrencies += OnCollectAlign;
}
private void RefreshCurrency()
{
counter.SetTargetValue(appController.GetCurrencies());
}
}