// Use this for initialization void Start() { trackedObj = transform.parent.GetComponent<SteamVR_TrackedObject>(); bruce = GameObject.FindWithTag("Player").GetComponent<CharactorBruce>(); if(null == currentWeapon) { SwapWeapon(); } }
// Use this for initialization void Start() { trackedObj = transform.parent.GetComponent <SteamVR_TrackedObject>(); bruce = GameObject.FindWithTag("Player").GetComponent <CharactorBruce>(); if (null == currentWeapon) { SwapWeapon(); } }
void Start () { InitInputDevice(); bruce = GameObject.FindWithTag("Player").GetComponent<CharactorBruce>(); if(null == currentWeapon) { SwapWeapon(); } }