17 lines
331 B
C#
17 lines
331 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class selectEffect : MonoBehaviour
|
|
{
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
// if this gameobject exist over 5s, destroy it
|
|
if (Time.time > 5)
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
}
|