Skip to content

YimingSun60/vrshoppingproj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

210 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vrshoppingproj

Assets Requirement

5-27

  1. Nokobot

Item list

  1. Item class is under the Assets/Scripts/Item
  2. weapon.csv is under the Assets/Resources
  3. Add Item script to each weapon game object and set the Id variable through Inspector. The Id should match the item ID in the CSV file
  4. Drag game objects into the Data Loader prefab so that the Data Loader script could assign CSV data to the corresponding item game object
  5. Call DataLoader.get_items() to access the item list.

商品配置(prefab的所有变动不要override)

  1. Prefab下有个Gameobject, 组件都在上面。使用时更改item的ID,在Photon Grabable的脚本中把Player->OVRVameraRig->TrackingSpace->LeftHandAnchor->LeftControllerAnchor->Canvas->Panel->Text拖到item Info里
  2. 把商品本体拖到Gameobject里作为child
  3. 在Gameobject里调整collider大小
  4. 把Gameobject改成对应商品的名字

购物逻辑

武器

  • 每把武器只能持有一把

消耗品

  • buff类每件最多购买一件
  • 回复类可以买若干件

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages