private void Awake() { itemManager = FindObjectOfType <ItemsManager>(); gamePlayerSkins = FindObjectOfType <GamePlayerSkins>(); gameCoins = FindObjectOfType <GameCoins>(); //gameCoins.OnCoinsCountChanged += SetupBuyButtons; gamePlayerSkins.OnSkinChanged += SetupSelectionButtons; if (itemIndex == 0) { PlayerPrefs.SetInt("item_" + itemIndex, 1); } AddListenedrToButtons(); }
private void Awake() { gamePlayerSkins = FindObjectOfType <GamePlayerSkins>(); gamePlayerSkins.OnSkinChanged += HandlerSkinChange; }