rabidus-test/Assets/Dreamteck/Splines/Examples/Projection/Scripts/LapCounter.cs

19 lines
369 B
C#
Raw Normal View History

2023-07-24 16:38:13 +03:00
namespace Dreamteck.Splines.Examples
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LapCounter : MonoBehaviour
{
int currentLap;
public TextMesh text;
public void CountLap()
{
currentLap++;
text.text = "LAP " + currentLap;
}
}
}