private void NextBuildDialogue(int current, int id) { DOVirtual.DelayedCall(3.5f, () => { DOVirtual.DelayedCall(1.5f, () => { BuildDialogue(current); }); }).OnStart(() => { OnSelectAnswer?.Invoke(id); }); }
private void CloseWindow(int id = -1) // закрываем окно диалога { _active = false; if (id != -1) { OnSelectAnswer?.Invoke(id); } DOVirtual.DelayedCall(4f, () => { scrollRect.gameObject.SetActive(false); OnCompleteDialog?.Invoke(); }); }