Ashby Issac 0bace59e6d Car movement and camera changes.
Integrated custom car movements and fixed issues with follow camera behaviours.
2026-01-05 13:34:57 +05:30

30 lines
538 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimerSystem
{
private float timer = 10f;
private float timerIncrement = 5f;
public float Timer => timer;
public float TimerIncrement = 5f;
public TimerSystem()
{
GameplayController.OnCheckpointReached += UpdateTimer;
}
private void IncreaseTimer()
{
timer += timerIncrement;
}
public void UpdateTimer(float remTime)
{
timer = remTime;
IncreaseTimer();
}
}