TeachOperationController.cs 680 B

12345678910111213141516171819202122232425262728293031323334
  1. using QFramework;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. /// <summary>
  6. /// 教学模式操作控制器
  7. /// </summary>
  8. public class TeachOperationController : MonoSingleton<TeachOperationController>
  9. {
  10. [SerializeField]
  11. private GameObject m_VRPlayer;
  12. // Start is called before the first frame update
  13. void Awake()
  14. {
  15. Init();
  16. }
  17. private void Init()
  18. {
  19. ControlCameraStatus(false);
  20. }
  21. /// <summary>
  22. /// 控制相机状态
  23. /// </summary>
  24. /// <param name="_isShow"></param>
  25. public void ControlCameraStatus(bool _isShow)
  26. {
  27. m_VRPlayer.SetActive(_isShow);
  28. }
  29. }