Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
        });
    }