InfraredGuider.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class InfraredGuider : MonoBehaviour
  6. {
  7. public GameObject infraredLightGuider;
  8. public GameObject infraredResulutionGuider;
  9. //Ïà»ú¸Ð¹â²¿·Ö
  10. [SerializeField]
  11. Slider slider;
  12. // Start is called before the first frame update
  13. void Start()
  14. {
  15. if (InfraredDemo._ins)
  16. {
  17. slider.onValueChanged.AddListener((value) =>
  18. {
  19. InfraredDemo._ins.onSliderEvent(value);
  20. });
  21. InfraredDemo._ins.onSetSliderValue(slider);
  22. }
  23. }
  24. // Update is called once per frame
  25. //void Update()
  26. //{
  27. //}
  28. public void enterLightView() {
  29. Instantiate(infraredLightGuider);
  30. }
  31. public void enterInfraredResulutionGuider() {
  32. Instantiate(infraredResulutionGuider);
  33. }
  34. public void ExitGuider() {
  35. //if (NewUserGuiderManager.ins)
  36. // NewUserGuiderManager.ins.OnEnd();
  37. GameMgr.bNavBack = false;
  38. Destroy(gameObject);
  39. }
  40. }