1234567891011121314151617181920212223 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class UI : MonoBehaviour
- {
- private void Start()
- {
- GamePassEvent.Register(OnGamePass);
- }
- private void OnGamePass()
- {
- transform.Find("Canvas/GamePassPanel").gameObject.SetActive(true) ;
- }
- private void OnDestroy()
- {
- GamePassEvent.UnRegister(OnGamePass);
- }
- }
|