private void Start() { if (m_fluwidManager != null) { return; } SmartFluwid tmp = GetComponentInParent <SmartFluwid>(); if (tmp != null) { m_fluwidManager = tmp; } }
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(); } }
private void Awake() { m_fluwidManager = GetComponent <SmartFluwid>(); m_meshExplosion = GetComponentInParent <MeshExplosion>(); m_meshCollider = GetComponent <MeshCollider>(); }
static public bool Contains(SmartFluwid fluwidManager) { return(s_singleton.m_containedFluwidManagers.Contains(fluwidManager)); }
private void Awake() { m_fluwidManager = GetComponent <SmartFluwid>(); m_audioSource = GetComponent <AudioSource>(); }