[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

@@ -1,16 +1,20 @@
using System.Collections;
using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class StickerDisplay : MonoBehaviour
public class StickerDisplay : MonoBehaviour, IPointerClickHandler
{
public TMP_Text label;
public TMP_Text duckCount;
public Image stickerImage;
public event EventHandler<DuckStickerData> StickerClicked;
private DuckStickerData _sticker;
public DuckStickerData Sticker
{
@@ -34,4 +38,10 @@ public class StickerDisplay : MonoBehaviour
duckCount.text = _collectedCount + "x";
}
}
public void OnPointerClick(PointerEventData eventData)
{
StickerClicked?.Invoke(this, Sticker);
}
}