using Normal.Realtime;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpawnBoss : MonoBehaviour
{
#region Variables
[Header("Variables")]
[SerializeField] private Transform spawnPoint;
public string bossName;
#endregion
private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
Realtime.Instantiate(bossName, spawnPoint.position, spawnPoint.rotation);
}
}
}
using Normal.Realtime;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpawnBoss : MonoBehaviour
{
#region Variables
[Header("Variables")]
[SerializeField] private Transform spawnPoint;
public string bossName;
#endregion
private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
Realtime.Instantiate(bossName, spawnPoint.position, spawnPoint.rotation);
}
}
}