This commit is contained in:
parent
be0b13aefd
commit
2bf6a40d42
|
|
@ -42,7 +42,7 @@ public class TrafficLightManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (light != null)
|
if (light != null)
|
||||||
{
|
{
|
||||||
// 假设你有一个方法来根据状态获取相应的贴图
|
// 假设你有一个方法来根据状态获取相应的贴图
|
||||||
//Texture newTexture = GetTextureForState(state);
|
//Texture newTexture = GetTextureForState(state);
|
||||||
light.transform.Find("red2").GetComponent<MeshRenderer>().material.DisableKeyword("_EMISSION");
|
light.transform.Find("red2").GetComponent<MeshRenderer>().material.DisableKeyword("_EMISSION");
|
||||||
light.transform.Find("yellow1").GetComponent<MeshRenderer>().material.DisableKeyword("_EMISSION");
|
light.transform.Find("yellow1").GetComponent<MeshRenderer>().material.DisableKeyword("_EMISSION");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue