using AibisDream.Framework; using TMPro; using UnityEngine; namespace AibisDream.Kit { public class VerText : MonoBehaviour { private void Start() { GetComponent().text = $"Ver.{Application.version}"; EnumEventSystem.Global.Register(UIEventEnum.RecordingModeChanged, OnRecordingModeChanged); } private void OnDestroy() { EnumEventSystem.Global.UnRegister(UIEventEnum.RecordingModeChanged, OnRecordingModeChanged); } private void OnRecordingModeChanged(bool isRecording) { gameObject.SetActive(!isRecording); } } }