This commit is contained in:
magn9775
2024-04-12 12:41:59 +02:00
parent 3afa8baf53
commit 6d95696418
84 changed files with 14002 additions and 13 deletions

View File

@@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;
using JetBrains.Annotations;
using Unity.Mathematics;
public class GameUI : MonoBehaviour
{
public GameObject car;
private float carVel;
public Rigidbody carRB;
// Start is called before the first frame update
void Start()
{
if (carRB == null)
{
carRB = GetComponent<Rigidbody>();
}
}
// Update is called once per frame
void Update()
{
carVel = (math.abs(carRB.velocity.x) + math.abs(carRB.velocity.y) + math.abs(carRB.velocity.z))*5;
print(carVel);
}
}