Quantum-Engineering/Explosion.cs

17 lines
300 B
C#
Raw Normal View History

2020-08-31 04:00:45 -04:00
using UnityEngine;
public class Explosion : MonoBehaviour
{
private float timer;
2020-08-04 21:33:47 -04:00
2020-08-31 04:00:45 -04:00
// Called once per frame by unity engine
public void Update()
{
timer += 1 * Time.deltaTime;
if (timer > 5)
{
Destroy(gameObject);
}
}
}