You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
410 B

  1. using System.Collections;
  2. using UnityEngine;
  3. public class levelInfoDisplay : MonoBehaviour
  4. {
  5. public GameObject infoDisplay;
  6. IEnumerator displayforSeconds(float time)
  7. {
  8. infoDisplay.SetActive(true);
  9. yield return new WaitForSeconds(time);
  10. infoDisplay.SetActive(false);
  11. }
  12. public void StartCoroutine()
  13. {
  14. StartCoroutine(displayforSeconds(5.0f));
  15. }
  16. }