public static void addItem(objectItem item, string str1) { if (item.count < 4) { item.It[item.count].Name = str1; item.It[item.count].tex = (Texture)Resources.Load(str1); item.count++; } }