SSLR/SSLR/Assets/Scripts/NPCSpawn.cs
kookiekenobi 27044d5906 game: npc spawn and move fixed
npcs still trying to sit on each other
2025-02-15 03:24:55 +08:00

53 lines
1,007 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NPCSpawn : MonoBehaviour
{
/*public static NPCSpawn instance;*/
/*
[SerializeField] private float npcBufferTime;
*/
/*public bool npcSpawned = false;
*/
/*[SerializeField]
GameObject npc;*/
/*void Awake()
{
if (instance ==null)
{
instance = this;
}
else
{
Destroy(gameObject);
}
}*/
/*void Update()
{
if (!npcSpawned)
{
StartCoroutine(SpawnNPCAfterWait());
}
}*/
/*void SpawnNPC()
{
StopAllCoroutines();
GameObject spawnedNPC = Instantiate(npc, transform.position, Quaternion.identity);
npcSpawned = true;
GameManager.instance.currentNPC = spawnedNPC;
}*/
/*IEnumerator SpawnNPCAfterWait()
{
yield return new WaitForSeconds(npcBufferTime);
SpawnNPC();
}*/
}