private void OnDestroy() { if (Instance == this) { Instance = null; } }
private void Awake() { if (Instance == null) { Instance = this; StartCoroutine(wrkFlow()); } else { Destroy(gameObject); } }