mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 12:52:07 +01:00
18 lines
320 B
C#
18 lines
320 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Bullet : MonoBehaviour
|
|
{
|
|
int seconds = 30;
|
|
private void Start()
|
|
{
|
|
StartCoroutine("dest");
|
|
}
|
|
IEnumerator dest()
|
|
{
|
|
yield return new WaitForSeconds(seconds);
|
|
Destroy(this);
|
|
}
|
|
}
|