コード例 #1
0
    public void PushExistingItems_toNewClient(string prefabName, Vector3 itemPosition, Vector3 itemOrientation)
    {
        if (initSpawn_finished == true)
        {
            return;
        }
        print("prefabName: " + prefabName);
        GameObject selectedPrefab = ItemsManager.itemPrefabs_dict[prefabName];

        if (selectedPrefab != null)
        {
            itemSpawner.AddExistingItem(selectedPrefab, itemPosition, itemOrientation);
        }
    }