Ejemplo n.º 1
0
    private void Start()
    {
        if (m_fluwidManager != null)
        {
            return;
        }

        SmartFluwid tmp = GetComponentInParent <SmartFluwid>();

        if (tmp != null)
        {
            m_fluwidManager = tmp;
        }
    }
Ejemplo n.º 2
0
    protected override void OnActionDown()
    {
        if (!picked)
        {
            VivePickable itemToGrip = this;

            if (m_itemType == XperItem.Erlenmeyer)
            {
                SmartFluwid          smartFluwid          = GetComponentInChildren <SmartFluwid>();
                FluwidContainerEntry fluwidContainerEntry = smartFluwid.GetComponentInChildren <FluwidContainerEntry>();

                if (fluwidContainerEntry.hasCork && fluwidContainerEntry.viveCork.picked)
                {
                    itemToGrip = fluwidContainerEntry.viveCork;
                }
            }

            itemToGrip.Grip(m_interactionWand);
            ReportInteraction();
        }
    }
Ejemplo n.º 3
0
 private void Awake()
 {
     m_fluwidManager = GetComponent <SmartFluwid>();
     m_meshExplosion = GetComponentInParent <MeshExplosion>();
     m_meshCollider  = GetComponent <MeshCollider>();
 }
Ejemplo n.º 4
0
 static public bool Contains(SmartFluwid fluwidManager)
 {
     return(s_singleton.m_containedFluwidManagers.Contains(fluwidManager));
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     m_fluwidManager = GetComponent <SmartFluwid>();
     m_audioSource   = GetComponent <AudioSource>();
 }