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> (); }
void Awake() { rp = GameObject.Find("VivePointers/Right/Reticle").GetComponent <ReticlePoser>(); }