private void RemoveNotification() { if (_spammingText.gameObject.activeInHierarchy && TimeHandler.GetMilliseconds() - _timeOfSpamming >= _taskSettings.InfoTime) { _spammingText.gameObject.SetActive(false); } }
private void ShowNotification() { if (++_numberOfSpamming >= 3) { _currentDisplayStatus = DisplayStatus.GoToMainMenu; } else { _timeOfSpamming = TimeHandler.GetMilliseconds(); _spammingText.gameObject.SetActive(true); } }