Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using TMPro;
- public class HintText : MonoBehaviour
- {
- public TMP_Text hintText;
- public GameObject GameHint;
- public float hintTime;
- public void ShowHint(string hint)
- {
- }
- public void OnTriggerEnter(Collider other)
- {
- StartCoroutine(HintTimer());
- }
- public IEnumerator HintTimer()
- {
- GameHint.SetActive(true);
- GameHint.SetActive(false);
- yield return new WaitForSeconds(hintTime);
- }
- }
Add Comment
Please, Sign In to add comment