17 lines
286 B
C#
17 lines
286 B
C#
namespace ArionDigital
|
|
{
|
|
using UnityEngine;
|
|
|
|
public class DestroyAfterTime : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
Invoke("DestroySelf", 3.0f);
|
|
}
|
|
|
|
void DestroySelf()
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
} |