コード例 #1
0
    public void ButtonStickerClicked(int stickerInd)
    {
        //BlockClicks.Instance.SetBlockAll(true);
        //BlockClicks.Instance.SetBlockAllDelay(.3f,false);
        //if(  GameData.unlockedStickers[stickerInd] == 1)
        {
            stickers.CreateSticker(stickerInd - 1);
            if (SoundManager.Instance != null)
            {
                SoundManager.Instance.Play_ButtonClick();
            }
        }

        /*else
         * {
         *      //ZAKLJUCANO
         *      //Watch video
         *      videoStickerInd = stickerInd;
         *      WatchVideoPopUp.instance.ShowPopUpWatchVideo();
         *      //if(SoundManager.Instance!=null) SoundManager.Instance.Play_Sound(SoundManager.Instance.EmptyFlavor);
         * }*/
    }