private void SpawnItem(Items item) { var itemPrefab = items.FirstOrDefault(p => p.item == item).prefab; PhotonNetwork.Instantiate(itemPrefab.name, MapsManager.RandomPos(), MapsManager.RandomRot(), 0, null); }