This commit is contained in:
yzx 2024-01-03 17:34:51 +08:00
parent be0b13aefd
commit 2bf6a40d42
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class TrafficLightManager : MonoBehaviour
{
if (light != null)
{
// 假设你有一个方法来根据状态获取相应的贴图
// 假设你有一个方法来根据状态获取相应的贴图
//Texture newTexture = GetTextureForState(state);
light.transform.Find("red2").GetComponent<MeshRenderer>().material.DisableKeyword("_EMISSION");
light.transform.Find("yellow1").GetComponent<MeshRenderer>().material.DisableKeyword("_EMISSION");