Exemplo n.º 1
0
 public void AddOrUpdate(UseLocation useLocation)
 {
     if (useLocation == null)
     {
         throw new ArgumentNullException(nameof(useLocation));
     }
     _useLocations.AddOrUpdate(useLocation);
 }
Exemplo n.º 2
0
 public void AddItem(Item newItem)
 {
     item         = newItem;
     icon.sprite  = item.icon;
     icon.enabled = true;
     removeButton.interactable = true;
     if (item.useLocationName != null || item.useLocationName != "")
     {
         useLocation    = FindTransform(item.useLocationName);
         hasUseLocation = true;
     }
 }
Exemplo n.º 3
0
 public void Delete(UseLocation useLocation)
 {
     _useLocations.Remove(useLocation);
 }