IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
ItemPackage.cs
1 //======= Copyright (c) Valve Corporation, All rights reserved. ===============
2 //
3 // Purpose: A package of items that can interact with the hands and be returned
4 //
5 //=============================================================================
6 
7 using UnityEngine;
8 using System.Collections;
9 
10 namespace Valve.VR.InteractionSystem
11 {
12  //-------------------------------------------------------------------------
13  public class ItemPackage : MonoBehaviour
14  {
15  public enum ItemPackageType { Unrestricted, OneHanded, TwoHanded }
16 
17  public new string name;
18  public ItemPackageType packageType = ItemPackageType.Unrestricted;
19  public GameObject itemPrefab; // object to be spawned on tracked controller
20  public GameObject otherHandItemPrefab; // object to be spawned in Other Hand
21  public GameObject previewPrefab; // used to preview inputObject
22  public GameObject fadedPreviewPrefab; // used to preview insubstantial inputObject
23  }
24 }