20 lines
320 B
C#
20 lines
320 B
C#
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);
|
|
}
|
|
|
|
}
|