[TASK] Added more duck spawn, performance fixes, instruction in the minigame, option to zoom in on stickers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user