Exemplo n.º 1
0
    void OnEnable()
    {
        reticlePoser = reticle.GetComponent <ReticlePoser>();

        /*if (keyboard.activeSelf)
         * {
         *  keyboard.SetActive(false);
         * }
         * else*/
        if (reticlePoser.hitTarget != null)
        {
            if (reticlePoser.hitTarget.tag == "Initialize")
            {
                keyboard.SetActive(true);
                // Debug.Log(keyboard.GetComponent<AllButtonsMockScript>().typed);
            }
        }
    }
 // Use this for initialization
 void Start()
 {
     m_leftWandController = g_leftController.GetComponent <wandController> ();
     m_reticlePoser       = g_reticle.GetComponent <ReticlePoser> ();
 }
Exemplo n.º 3
0
 void Awake()
 {
     rp = GameObject.Find("VivePointers/Right/Reticle").GetComponent <ReticlePoser>();
 }