mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-16 05:46:10 -05:00
Added some placeholder images for the items in the game made small adjustments to grapple
25 lines
502 B
C#
25 lines
502 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Tooltip : MonoBehaviour
|
|
{
|
|
|
|
private Text tooltipText;
|
|
|
|
private void Start(){
|
|
tooltipText = transform.Find("Text").GetComponent<Text>();
|
|
HideTooltip();
|
|
}
|
|
|
|
public void ShowTooltip(string curTooltip){
|
|
gameObject.SetActive(true);
|
|
tooltipText.text = curTooltip;
|
|
}
|
|
|
|
public void HideTooltip(){
|
|
gameObject.SetActive(false);
|
|
}
|
|
}
|