示例#1
0
 void Start()
 {
     itemdatabase = GameObject.Find("[CameraRig]").GetComponent <ItemDatabase> ();
     inventory    = GameObject.Find("Controller (left)").GetComponent <Inventory> ();
     raycastmouse = GetComponent <RayCastMouse> ();
     trackedObj   = GetComponent <SteamVR_TrackedObject> ();
 }
示例#2
0
 void Start()
 {
     raycastmouse = GetComponent <RayCastMouse> ();
     itemdatabase = GetComponent <ItemDatabase> ();
     inventoryui  = GetComponent <InventoryUI> ();
     trackedObj   = GetComponent <SteamVR_TrackedObject> ();
 }
示例#3
0
 void Start()
 {
     raycastmouse = GetComponent <RayCastMouse> ();
 }
示例#4
0
 void Start()
 {
     inventory    = GameObject.Find("[CameraRig]").GetComponent <Inventory> ();
     raycastmouse = GetComponent <RayCastMouse> ();
     trackedObj   = GetComponent <SteamVR_TrackedObject> ();
 }