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