修改提示bug
This commit is contained in:
parent
675375f3df
commit
c54b58f5b2
File diff suppressed because it is too large
Load Diff
|
@ -47,7 +47,7 @@ public class StudyTips : MonoBehaviour
|
|||
Up.gameObject.SetActive(true);
|
||||
contenttext.text = Tips[index];
|
||||
}
|
||||
if (index >= Tips.Count)
|
||||
if (index >= Tips.Count-1)
|
||||
{
|
||||
Down.gameObject.SetActive(false);
|
||||
index = Tips.Count - 1;
|
||||
|
|
|
@ -12,6 +12,8 @@ public class SelectModel : MonoBehaviour
|
|||
public Button connected_Devices;//设备互联与系统控制
|
||||
public Button maintenance;//智能家电与维护
|
||||
public Region region = Region.None;
|
||||
public Transform Player;
|
||||
public List<Transform> Pos = new List<Transform>();
|
||||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
|
@ -22,16 +24,19 @@ public class SelectModel : MonoBehaviour
|
|||
{
|
||||
region = Region.环境控制;
|
||||
gameObject.SetActive(false);
|
||||
Player.SetLocalPositionAndRotation(Pos[0].position, Pos[0].rotation);
|
||||
});
|
||||
connected_Devices.onClick.AddListener(() =>
|
||||
{
|
||||
region = Region.设备互联与系统控制;
|
||||
gameObject.SetActive(false);
|
||||
Player.SetLocalPositionAndRotation(Pos[1].position, Pos[1].rotation);
|
||||
});
|
||||
maintenance.onClick.AddListener(() =>
|
||||
{
|
||||
region = Region.智能家电与维护;
|
||||
gameObject.SetActive(false);
|
||||
Player.SetLocalPositionAndRotation(Pos[2].position, Pos[2].rotation);
|
||||
});
|
||||
}
|
||||
void Update()
|
||||
|
|
Loading…
Reference in New Issue