Hi there,
My game is a car that runs into snowflakes (similar idea to fuel canisters) so i go through one it resets the cold value to 1 then destroys the gameobject. However i would like to respawn the snowflake again after a time delay incase the car crashes and has to respawn.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AddColdL2 : MonoBehaviour
{
public VanController vanController;
private void OnTriggerEnter2D(Collider2D collision)
{
vanController.cold = 1;
Destroy(gameObject);
}
}
How could i go about doing this?,