Health/Assets/Scripts/PoseCheck/ShowHintUIController.cs

26 lines
531 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using UnityEngine;
using UnityEngine.UI;
public class ShowHintUIController : MonoBehaviour
{
private void OnEnable()
{
YogaManager.Instance.ShowHint -= ShowHint;
YogaManager.Instance.ShowHint += ShowHint;
}
private void OnDisable()
{
YogaManager.Instance.ShowHint -= ShowHint;
}
private void ShowHint(string hintText)
{
this.GetComponent<Text>().text = hintText;
}
}