Files
blackhole-escape/Assets/Assets_And_Scenes/Scripts/Other Scripts/ParticalCleanUp.cs
2022-06-18 15:55:39 +01:00

29 lines
493 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParticalCleanUp : MonoBehaviour
{
// Start is called before the first frame update
private float tik;
private float end = 2;
void Start()
{
tik = 0;
}
// Update is called once per frame
void Update()
{
if(tik >= end)
{
Destroy(gameObject);
}
else
{
tik += Time.deltaTime;
}
}
}