예제 #1
0
    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();
    }
예제 #2
0
 private void Awake()
 {
     gamePlayerSkins = FindObjectOfType <GamePlayerSkins>();
     gamePlayerSkins.OnSkinChanged += HandlerSkinChange;
 }