16 lines
325 B
C#
16 lines
325 B
C#
using UnityEngine;
|
|
|
|
public class TestSpawner : MonoBehaviour
|
|
{
|
|
public GameObject testCube;
|
|
|
|
void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Space))
|
|
{
|
|
Instantiate(testCube, new Vector3(0, 1, 2), Quaternion.identity);
|
|
Debug.Log("Spawned test cube manually.");
|
|
}
|
|
}
|
|
}
|