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