Quantum-Engineering/Explosion.cs
2020-08-31 04:00:45 -04:00

17 lines
300 B
C#

using UnityEngine;
public class Explosion : MonoBehaviour
{
private float timer;
// Called once per frame by unity engine
public void Update()
{
timer += 1 * Time.deltaTime;
if (timer > 5)
{
Destroy(gameObject);
}
}
}