| 12345678910111213141516171819 |
- using UnityEngine;
- using System.Collections;
- public class Delay : MonoBehaviour {
-
- public float delayTime = 1.0f;
-
- // Use this for initialization
- void Start () {
- gameObject.SetActiveRecursively(false);
- Invoke("DelayFunc", delayTime);
- }
-
- void DelayFunc()
- {
- gameObject.SetActiveRecursively(true);
- }
-
- }
|