コード例 #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);
            }
        }
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     m_leftWandController = g_leftController.GetComponent <wandController> ();
     m_reticlePoser       = g_reticle.GetComponent <ReticlePoser> ();
 }
コード例 #3
0
ファイル: Move.cs プロジェクト: BowenYuan95/VR_ZombieShooting
 void Awake()
 {
     rp = GameObject.Find("VivePointers/Right/Reticle").GetComponent <ReticlePoser>();
 }