| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 | 
							- using System.Collections;
 
- using System.Collections.Generic;
 
- using UnityEngine;
 
- using UnityEngine.UI;
 
- public class InfraredGuider : MonoBehaviour
 
- {
 
-     public GameObject infraredLightGuider;
 
-     public GameObject infraredLightGuider2;
 
-     public GameObject infraredResulutionGuider;
 
-     public Button resulutionButton;
 
-     public GameObject Title1ARTEMISPro;
 
-     public GameObject Title1;
 
-     public GameObject Title2;
 
-     public int collisionCount = 0;
 
-     bool bRemove = false;
 
-     //相机感光部分
 
-     [SerializeField]
 
-     Slider slider;
 
-     [Tooltip("异常校准时候步骤1")]
 
-     public GameObject Step1;
 
-     [Tooltip("正常游戏流程步骤2")]
 
-     public GameObject Step2;
 
-     [Tooltip("异常问题时候文字提示步骤1")]
 
-     public GameObject Step3;
 
-     // Start is called before the first frame update
 
-     void Start()
 
-     {
 
-         if (InfraredDemo._ins)
 
-         {
 
-             slider.onValueChanged.AddListener((value) =>
 
-             {
 
-                 InfraredDemo._ins.onSliderEvent(value, "PU_BRIGHTNESS");
 
-             });
 
-             InfraredDemo._ins.onSetSliderValue(slider, "PU_BRIGHTNESS");
 
-         }
 
- #if  UNITY_STANDALONE_WIN || UNITY_EDITOR
 
-         resulutionButton.gameObject.SetActive(false);
 
- #endif
 
-         //枪暂时不显示
 
-         if (BluetoothAim.ins.isMainConnectToGun()) {
 
-             Title1ARTEMISPro.SetActive(false);
 
-             Title1.SetActive(false);
 
-         }
 
-         else
 
-         //切换ARTEMISPro
 
-         if (BluetoothAim.ins.isMainConnectToARTEMISPRO()) {
 
-             Title1ARTEMISPro.SetActive(true);
 
-             Title1.SetActive(false);
 
-         }
 
-     }
 
-     // Update is called once per frame
 
-     //void Update()
 
-     //{
 
-     //}
 
-     public void enterLightView() {
 
-          Instantiate(infraredLightGuider);
 
-     }
 
-     public void enterInfraredResulutionGuider() {
 
- #if UNITY_ANDROID
 
-         Instantiate(infraredResulutionGuider);
 
- #endif
 
-     }
 
-     public void ExitGuider() {
 
-         //if (NewUserGuiderManager.ins)
 
-         //    NewUserGuiderManager.ins.OnEnd();
 
-         GameAssistUI.ins.onBtnBack();
 
-         //GameMgr.bNavBack = false;
 
-         //Destroy(gameObject);
 
-     }
 
-     /// <summary>
 
-     /// 校准后切换标题
 
-     /// </summary>
 
-     public void SetTitleAfterCalibration() {
 
-         Title1ARTEMISPro.SetActive(false);
 
-         Title1.SetActive(false);
 
-         Title2.SetActive(true) ;
 
-     }
 
-     /// <summary>
 
-     /// 进入相机感光度的页面
 
-     /// </summary>
 
-     public void enterInfraredLightGuider2()
 
-     {
 
- #if UNITY_ANDROID
 
-         Instantiate(infraredLightGuider2);
 
- #endif
 
-     }
 
-     /// <summary>
 
-     /// 异常问题处理时候的文字提示步骤
 
-     /// </summary>
 
-     public void OnStep3TextTip()
 
-     {
 
-         if (Step1.activeSelf && !bRemove)
 
-         {
 
-             bRemove = true;
 
-             StartCoroutine(delaySet());
 
-         }
 
-         Step1.SetActive(false);
 
-         Step2.SetActive(false);
 
-         Step3.SetActive(true);
 
-     }
 
-     /// <summary>
 
-     /// 射击页面测试显示
 
-     /// </summary>
 
-     public void OnStep2ShootTest()
 
-     {
 
-         if (Step1.activeSelf && !bRemove)
 
-         {
 
-             bRemove = true;
 
-             StartCoroutine(delaySet());
 
-         }
 
-         Step1.SetActive(false);
 
-         Step2.SetActive(true);
 
-         Step3.SetActive(false);
 
-     
 
-     }
 
-     IEnumerator delaySet() {
 
-   
 
-         yield return new WaitForSeconds(0.5f);
 
-         SimulateMouseController.ins?.RemoveOpenLocker(this);
 
-     }
 
-     public void SetCollisionEvent() {
 
-         if (collisionCount < 3)
 
-         {
 
-             collisionCount++;
 
-         }
 
-         else {
 
-             //进入下一步
 
-             OnStep2ShootTest();
 
-         }
 
-         
 
-     }
 
-     void OnEnable()
 
-     {
 
-         SimulateMouseController.ins?.AddOpenLocker(this);
 
-     }
 
-     void OnDisable()
 
-     {
 
-        
 
-     }
 
- }
 
 
  |