12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class StartZhongKong : MonoBehaviour
- {
- // Use this for initialization
- public GameObject showGame;
- public float showTimer;
-
- void Start()
- {
- StartCoroutine(Show(showTimer));
- }
- private IEnumerator Show(float timer)
- {
- yield return new WaitForSeconds(timer);
- showGame.SetActive(true);
- this.gameObject.SetActive(false);
- }
- }
|