示例#1
0
 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;
     }
 }
示例#2
0
 void Start()
 {
     m_FirstPersonItem = firearm.GetComponent <NeoInventoryFirstPersonItem>();
     m_FirstPersonItem.onAddedToCharacter     += OnItemAddedToCharacter;
     m_FirstPersonItem.onRemovedFromCharacter += OnItemRemovedFromCharacter;
 }