Hello!
I am trying to make a bullet that gets destroyed after x seconds, but this causes the original gameObject to get destroyed whichstops me from instantiating it.
void Update()
{
DestroyTimer -= Time.deltaTime;
if (DestroyTimer <= 0)
{
Object.Destroy(gameObject);
}
}
How can I reset the script to the original variables/conditions after cloning the object?
(or something that has the same effect)