private void Update() { if (needRestart) { needRestart = false; _setter.ResetAndHide(); restartGame.gameObject.SetActive(true); } }