Exemplo n.º 1
0
    private void SetEndedDialog(float delay)
    {
        DOVirtual.DelayedCall(delay, () =>
        {
            _active = false;

            //OnClearSelectAnswer?.Invoke(id);

            scrollRect.gameObject.SetActive(false);

            OnPauseCar?.Invoke(1.0f);

            OnCompleteDialog?.Invoke();
        });
    }
Exemplo n.º 2
0
    private void CloseWindow(int id = -1)     // закрываем окно диалога
    {
        _active = false;

        if (id != -1)
        {
            OnSelectAnswer?.Invoke(id);
        }

        DOVirtual.DelayedCall(4f, () =>
        {
            scrollRect.gameObject.SetActive(false);

            OnCompleteDialog?.Invoke();
        });
    }