001a16cf32
feat: add new logic EC_World.
31 lines
699 B
C#
31 lines
699 B
C#
using UnityEngine;
|
|
|
|
namespace BrewMonster.Scripts.Managers
|
|
{
|
|
public class NPCManager : MonoBehaviour
|
|
{
|
|
private static NPCManager instance;
|
|
|
|
[SerializeField] private GameObject modelPlayerCharacter;
|
|
|
|
public static NPCManager Instance
|
|
{
|
|
get
|
|
{
|
|
if (instance == null)
|
|
{
|
|
instance = FindAnyObjectByType<NPCManager>();
|
|
}
|
|
return instance;
|
|
}
|
|
}
|
|
|
|
public GameObject GetModelPlayer()
|
|
{
|
|
var player = Instantiate(modelPlayerCharacter);
|
|
player.SetActive(true);
|
|
return player;
|
|
}
|
|
}
|
|
}
|