コード例 #1
0
        internal void AddNewItem(byte type, byte count, Vector3 position)
        {
            GameObject newItem = Instantiate(Items[type], position, Items[type].transform.rotation);

            newItem.transform.parent = transform;
            layingItem                  = newItem.GetComponent <LayingItem>();
            layingItem.Type             = type;
            layingItem.ItemsCount       = count;
            layingItem._startType       = type;
            layingItem._startItemsCount = count;
        }
コード例 #2
0
 public void RemoveInList(LayingItem item) => _layingItems.Remove(item);
コード例 #3
0
 public void AddInList(LayingItem item) => _layingItems.Add(item);