private void SetEndedDialog(float delay) { DOVirtual.DelayedCall(delay, () => { _active = false; //OnClearSelectAnswer?.Invoke(id); scrollRect.gameObject.SetActive(false); OnPauseCar?.Invoke(1.0f); OnCompleteDialog?.Invoke(); }); }
private void CloseWindow(int id = -1) // закрываем окно диалога { _active = false; if (id != -1) { OnSelectAnswer?.Invoke(id); } DOVirtual.DelayedCall(4f, () => { scrollRect.gameObject.SetActive(false); OnCompleteDialog?.Invoke(); }); }