MoTaForPSVita/Assets/Scripts/Controller/UI/InfoImageController.cs
2024-04-30 17:39:50 +08:00

27 lines
507 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class InfoImageController : MonoBehaviour
{
private Animator _animator;
private Text _infoText;
private void Awake()
{
_animator = GetComponent<Animator>();
_infoText = GetComponentInChildren<Text>();
}
public void SetText(string text)
{
_infoText.text = text;
}
public void DestroySelf()
{
Destroy(gameObject);
}
}