GQ_Communicate/GQ_URP/GQ/Assets/script/UI/UISuspensionDeveloper.cs

43 lines
731 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class UISuspensionDeveloper : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
public GameObject game;
public Text text1;
public Text text2;
public void OnPointerEnter(PointerEventData eventData)
{
game.SetActive(true);
text2.text = text1.text;
}
public void OnPointerExit(PointerEventData eventData)
{
game.SetActive(false);
}
void Awake()
{
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}