2022-03-14 12:21:24 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class ItemSpawner : MonoBehaviour
|
|
|
|
{
|
|
|
|
|
|
|
|
public GameObject objectToSpawn;
|
|
|
|
public GameObject placeToSpawn;
|
|
|
|
public void SpawnItem()
|
|
|
|
{
|
2022-04-05 07:21:55 +00:00
|
|
|
Debug.Log("Spawned " + objectToSpawn);
|
2022-03-14 12:21:24 +00:00
|
|
|
Instantiate(objectToSpawn, placeToSpawn.transform);
|
|
|
|
}
|
|
|
|
}
|