lap counter fix
This commit is contained in:
@@ -81,8 +81,11 @@ public class GameManager : MonoBehaviour
|
||||
if (checkpointsCollected == checkpoints.Count())
|
||||
{
|
||||
player.GetComponent<PlayerController>().checkpointsCollected = 0;
|
||||
|
||||
playerLaps[i] += 1;
|
||||
lapCounter.text = "Lap count: " + playerLaps[i];
|
||||
|
||||
if (playerLaps[i] < lapAmount)
|
||||
lapCounter.text = "Lap count: " + playerLaps[i];
|
||||
}
|
||||
|
||||
string strTimes =playerTimes[i].ToString();
|
||||
|
||||
Reference in New Issue
Block a user