This commit is contained in:
2026-06-11 21:18:57 +07:00
parent 76e098d960
commit 97ae65f446
5779 changed files with 974 additions and 4758514 deletions

View File

@@ -1,23 +0,0 @@
namespace Opsive.UltimateCharacterController.Demo.UnityStandardAssets.Vehicles.Car
{
using UnityEngine;
public class BrakeLight : MonoBehaviour
{
private CarController m_Car;
private Renderer m_Renderer;
private void Start()
{
m_Car = GetComponentInParent<CarController>();
m_Renderer = GetComponent<Renderer>();
}
private void Update()
{
// enable the Renderer when the car is braking, disable it otherwise.
m_Renderer.enabled = m_Car.BrakeInput > 0f;
}
}
}