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); } } }