private void Awake() { if (Instance != null) { Destroy(gameObject); return; } else { Instance = this; } shouldCoutTime = false; timerText = GetComponent <TextMeshProUGUI>(); timer = 0.0f; Hour = 0; Minute = 0; Second = 0; millisecond = 0; }
private void OnDestroy() { Instance = null; }