Cara Membuat Singleton di Unity
void Awake()
{
if (instance == null)
instance = this;
else if (instance != this)
Destroy(gameObject);
}
JohnDRevelator
void Awake()
{
if (instance == null)
instance = this;
else if (instance != this)
Destroy(gameObject);
}