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.

22 lines
498 B

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