Ejemplo n.º 1
0
    private void Start()
    {
        //查找Button
        m_PauseButton  = transform.GetChild(0).GetComponent <Button>();
        m_RusumeButton = transform.GetChild(1).GetComponent <Button>();
        //摄像机材质 身上的脚本
        m_webcam = GameObject.FindGameObjectWithTag("RawIamge").GetComponent <CameraController>().webcam;
        //获取插件 脚本
        m_weraHf = GameObject.FindGameObjectWithTag("WearHF Manager").GetComponent <WearHF>();


        ToggleButtonStart(
            m_PauseButton, m_PauseButton.interactable ? ButtonStart.Enable : ButtonStart.Disabled);

        ToggleButtonStart(
            m_RusumeButton, m_RusumeButton.interactable ? ButtonStart.Enable : ButtonStart.Disabled);
    }
    /// <summary>
    /// See Unity docs
    /// </summary>
    private void Start()
    {
        m_webcam =
            GameObject.Find("RawImage").
            GetComponent <CameraController>().
            Webcam;

        m_wearHf = GameObject.Find("WearHF Manager").GetComponent <WearHF>();

        ToggleButtonState(
            PauseButton,
            PauseButton.interactable ?
            ButtonState.Enabled : ButtonState.Disabled);

        ToggleButtonState(
            ResumeButton,
            ResumeButton.interactable ?
            ButtonState.Enabled : ButtonState.Disabled);
    }
Ejemplo n.º 3
0
 private void Awake()
 {
     wearHf = GetComponent <WearHF>();
 }
Ejemplo n.º 4
0
 void Awake()
 {
     Instance    = this;
     main_WeraHF = GameObject.FindGameObjectWithTag("WearHF Manager").GetComponent <WearHF>();
 }