You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
712 B
30 lines
712 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TraficWnd : MonoBehaviour
|
|
{
|
|
//交通灯设置面板
|
|
public TraficLightSet traficLightSet;
|
|
public Slider timeScaleSlider;
|
|
[HideInInspector]
|
|
public Transform lightUIPanrent;
|
|
|
|
public void Init()
|
|
{
|
|
if (timeScaleSlider != null)
|
|
{
|
|
timeScaleSlider.onValueChanged.AddListener((float f) => { TraficLightManager.Instance.traficLightTimeScale = timeScaleSlider.value; });
|
|
}
|
|
|
|
}
|
|
|
|
public void ShowTraficSetPanel(TraficRoadType type,TraficLightPut put)
|
|
{
|
|
|
|
traficLightSet.ShowTraficSetPanel(type,put);
|
|
}
|
|
|
|
}
|