15 lines
299 B
C#
15 lines
299 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class ItemSpawner : MonoBehaviour
|
||
|
{
|
||
|
|
||
|
public GameObject objectToSpawn;
|
||
|
public GameObject placeToSpawn;
|
||
|
public void SpawnItem()
|
||
|
{
|
||
|
Instantiate(objectToSpawn, placeToSpawn.transform);
|
||
|
}
|
||
|
}
|