[TASK] Added more duck spawn, performance fixes, instruction in the minigame, option to zoom in on stickers

This commit is contained in:
2019-08-30 00:39:13 +02:00
parent bb4b5afb18
commit c60a130874
51 changed files with 86781 additions and 45090 deletions

View File

@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class StickerZoomDisplay : MonoBehaviour
{
[SerializeField] private Image stickerImage;
[SerializeField] private TMP_Text stickerLabel;
private DuckStickerData _sticker;
public DuckStickerData Sticker
{
get { return _sticker; }
set
{
_sticker = value;
stickerLabel.text = _sticker.Label;
stickerImage.sprite = _sticker.StickerSprite;
}
}
public void Show()
{
gameObject.SetActive(true);
}
public void Hide()
{
gameObject.SetActive(false);
}
}