private void Awake() { if (sInstance != null) { if (sInstance != this) { Destroy(gameObject); } return; } sInstance = this; //StartCoroutine(http.CheckQueue()); }
private void OnApplicationQuit() { sInstance = null; }