LMQT/Assets/TouchScript/Examples/_misc/Scripts/KillMe.cs
2024-12-10 09:03:45 +08:00

21 lines
403 B
C#

/*
* @author Valentin Simonov / http://va.lent.in/
*/
using UnityEngine;
using System.Collections;
namespace TouchScript.Examples
{
/// <exclude />
public class KillMe : MonoBehaviour
{
public float Delay = 1f;
private IEnumerator Start()
{
if (Delay != 0) yield return new WaitForSeconds(Delay);
Destroy(gameObject);
}
}
}