public static void RequestInstance() { GameObject obj = new GameObject("LuviParse"); _instance = obj.AddComponent <LuviParse>(); DontDestroyOnLoad(obj); }
void Awake() { if (_instance) { Destroy(gameObject); return; } _instance = this; DontDestroyOnLoad(gameObject); }
public static void RequestInstance() { GameObject obj = new GameObject("LuviParse"); _instance = obj.AddComponent<LuviParse>(); DontDestroyOnLoad(obj); }