[TASK] Added main "game manager" to switch between the minigame and the map + added simple UI to show that a sticker was collected

This commit is contained in:
2019-08-28 01:11:46 +02:00
parent 9057c295da
commit c52392eacd
16 changed files with 2423 additions and 102 deletions

View File

@@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
public class DuckCollectedSuccessScreen : MonoBehaviour
{
public Image stickerImage;
public TMP_Text stickerName;
public UnityEvent OkButtonClicked;
private DuckStickerData _sticker;
public DuckStickerData Sticker
{
get => _sticker;
set {
_sticker = value;
stickerImage.sprite = _sticker.StickerSprite;
stickerName.text = _sticker.Label;
}
}
public void OnOkButtonClicked()
{
OkButtonClicked?.Invoke();
}
}