public void EventSolo(SoloEvent soloEvent, bool CanLeaveDiretly = true) { textLog.SetText(soloEvent.Intro); optionContainer.KillChildren(); foreach (SoloSubEvent solo in soloEvent.SubEvents) { Instantiate(optionBtn, optionContainer).Setup(solo.Title).onClick.AddListener(() => EventSubSolo(solo)); } Setup(CanLeaveDiretly); }
public void StartDialog(Dialog dialog) { textLog.SetText(dialog.Intro); dialog.DialogOptions.ForEach(d => Instantiate(dialogBtn, btnContainer).Setup(d.ButtonTitle).onClick.AddListener(() => BtnClick(d))); }