1234567891011121314151617 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class JTFalse : MonoBehaviour
- {
- private void OnEnable()
- {
- StartCoroutine(MainFalse(5f));
- }
- IEnumerator MainFalse( float times)
- {
- yield return new WaitForSeconds(times);
- gameObject.SetActive(false);
- }
- }
|