20 lines
376 B
C#
20 lines
376 B
C#
|
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);
|
||
|
}
|
||
|
}
|