Hi guys i have gun and i made script for disappearing bullets and i need script now for respawning every 4
seconds can someone help?
This’ how my disappearing script looks rn:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Disapper : MonoBehaviour
{
void Awake()
{
StartCoroutine(waiter());
}
IEnumerator waiter()
{
yield return new WaitForSeconds(3);
Object.Destroy(this.gameObject);
}
}