How do i get the timer to reset everytime i hits 0?
Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpinStopper : MonoBehaviour
{
public double timer = 1;
public GameObject SpinCB;
public GameObject RealCB;
void Update()
{
timer -= Time.deltaTime;
if (timer <= 0)
{
SpinCB.SetActive(false);
RealCB.SetActive(true);
}
}
}