14 lines
319 B
C#
14 lines
319 B
C#
using Cryville.Common.Unity;
|
|
using UnityEngine;
|
|
|
|
namespace Cryville.Crtr.UI {
|
|
public class PopupManager : SingletonBehaviour<PopupManager> {
|
|
[SerializeField]
|
|
GameObject m_popupPrefab;
|
|
|
|
public void Create(string msg) {
|
|
Instantiate(m_popupPrefab, transform, false).GetComponent<Popup>().Message = msg;
|
|
}
|
|
}
|
|
}
|