gimm270_07_photogallery/Assets/Scripts/ControlHelp.cs

20 lines
376 B
C#
Raw Normal View History

2022-09-19 00:37:00 -06:00
using System.Collections;
using UnityEngine;
public class ControlHelp : MonoBehaviour
{
public GameObject helpText;
// Start is called before the first frame update
void Start()
{
StartCoroutine(hideText());
}
IEnumerator hideText()
{
yield return new WaitForSecondsRealtime(5.0f);
helpText.SetActive(false);
}
}