第一次提交
This commit is contained in:
19
Assets/Effect/Shader/Delay.cs
Normal file
19
Assets/Effect/Shader/Delay.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user