public void GameStart() { tecla.Event -= GameStart; foreach (var d in DemonManager.Instance.EveryDemon) { d.HaloOut.enabled = true; d.HaloIn.enabled = true; } currentSinner = SinnerGetter.Instance.GetOne(); ToWrite.SetText(currentSinner.Confesion.Content); Action run = () => tecla.Event += SelectTarget; ToWrite.OnComplete(run); PersonPic.Instance.HideNow(); PersonPic.Instance.SetVisible(true); PersonPic.Instance.SetPic(currentSinner._sprite); }
public void printOver(string[] s, int i) { var num = i; if (i == s.Length) { tecla.Event -= DialogWriter.Instance.HurryUp; return; } tecla.Event += DialogWriter.Instance.HurryUp; ToWrite.SetText(s[num++]); ToWrite.OnComplete(() => { tecla.Event -= DialogWriter.Instance.HurryUp; TimeStuff.DoAfter(() => { printOver(s, num); }, 2); }); }