private void Start() { if (m_FallbackPrototype != null) { m_Fallback = Instantiate(m_FallbackPrototype, Vector3.zero, Quaternion.identity, itemRoot); m_Fallback.Attach(this, null); equipped = m_Fallback; } }
void Start() { m_FirstPersonItem = firearm.GetComponent <NeoInventoryFirstPersonItem>(); m_FirstPersonItem.onAddedToCharacter += OnItemAddedToCharacter; m_FirstPersonItem.onRemovedFromCharacter += OnItemRemovedFromCharacter; }