| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class InfraredGuider : MonoBehaviour
- {
- public GameObject infraredLightGuider;
- public GameObject infraredResulutionGuider;
- //Ïà»ú¸Ð¹â²¿·Ö
- [SerializeField]
- Slider slider;
- // Start is called before the first frame update
- void Start()
- {
- if (InfraredDemo._ins)
- {
- slider.onValueChanged.AddListener((value) =>
- {
- InfraredDemo._ins.onSliderEvent(value);
- });
- InfraredDemo._ins.onSetSliderValue(slider);
- }
- }
- // Update is called once per frame
- //void Update()
- //{
-
- //}
- public void enterLightView() {
- Instantiate(infraredLightGuider);
- }
- public void enterInfraredResulutionGuider() {
- Instantiate(infraredResulutionGuider);
- }
- public void ExitGuider() {
- //if (NewUserGuiderManager.ins)
- // NewUserGuiderManager.ins.OnEnd();
- GameMgr.bNavBack = false;
- Destroy(gameObject);
- }
- }
|