DCDC25-TwinCity/Assets/Scripts/SpawnManager1.cs
Minhui Zhong 6bece3cab5 created a buttom and spawnmanager
buttom have some problem and need to fix it
2025-05-16 16:11:36 +02:00

27 lines
617 B
C#

using UnityEngine;
using Quaternion = UnityEngine.Quaternion;
using Vector3 = UnityEngine.Vector3;
public class SpawnManager1 : MonoBehaviour
{
public static SpawnManager1 Instance;
public GameObject pointerPrefab;
private static readonly Vector3 SpawnPosition = new Vector3(0,0,0);
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void SpawnPointer()
{
Instantiate(pointerPrefab,SpawnPosition,Quaternion.identity);
}
}