Пример #1
0
 public void PickUp(WorldItem itemToBeGrabbed)
 {
     if (AddItem(itemToBeGrabbed.inventoryItem.Clone()))
     {
         ResourceManager.HideItem(itemToBeGrabbed);
     }
     else
     {
         ErrorScript.DisplayError("No more room");
     }
 }
Пример #2
0
 void Awake()
 {
     m_DataInstance = this;
 }