Quantum-Engineering/Explosion.cs
2020-09-19 20:29:43 -05: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);
}
}
}