mirror of
https://github.com/ConjureETS/GameOff2024.git
synced 2026-03-24 13:10:58 +00:00
22 lines
447 B
C#
22 lines
447 B
C#
using System;
|
|
using GameOff.Core;
|
|
using UnityEngine;
|
|
|
|
namespace GameOff.UI.Quiz
|
|
{
|
|
public class QuizHolderUI : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
PlayerMain.Instance.OnStateUpdate += PlayerMain_OnStateUpdate;
|
|
|
|
gameObject.SetActive(false);
|
|
}
|
|
|
|
private void PlayerMain_OnStateUpdate(object sender, bool e)
|
|
{
|
|
gameObject.SetActive(e);
|
|
}
|
|
}
|
|
}
|