예제 #1
0
    private IEnumerator OblivionRoutine()
    {
        Global.Instance().Memory.SetSwitch("glitch_on", true);
        PhuneUI ui = FindObjectOfType <PhuneUI>();

        Global.Instance().Maps.avatar.PauseInput();
        GlitchImageEffect glitch = FindObjectOfType <Camera>().GetComponent <GlitchImageEffect>();
        Countdowner       count  = ui.gameObject.transform.parent.GetComponentInChildren <Countdowner>(true);

        yield return(ui.HideRoutine());

        yield return(CoUtils.Wait(0.5f));

        Global.Instance().Audio.PlaySFX("lightswitch");

        Global.Instance().Audio.FadeOutRoutine(0.6f);
        for (int i = 0; i < 20; i += 1)
        {
            glitch.enabled = !glitch.enabled;
            Global.Instance().Memory.SetSwitch("ghoulie", glitch.enabled);
            yield return(CoUtils.Wait(Random.Range(0.025f, 0.05f)));
        }
        Global.Instance().Memory.SetSwitch("ghoulie", false);
        glitch.enabled = true;
        CoUtils.Wait(1.0f);
        Global.Instance().Audio.PlayBGM("silvereyes");

        //count.enabled = true;
        //count.value = 60;
        Global.Instance().Maps.avatar.UnpauseInput();
    }
예제 #2
0
    public void OnInteract(object payload)
    {
        PhuneUI phune = FindObjectOfType <PhuneUI>();

        phune.AddTempData(uplink);
        phune.SetDefaultTab(uplink.category);
        StartCoroutine(phune.ShowRoutine());
    }
예제 #3
0
 public void Populate(PhuneUI presenter, PhuneTxtData data, bool on, bool read)
 {
     this.data = data;
     this.read = read;
     Populate(on, data.subject, ShowText);
     this.presenter = presenter;
     subj           = data.subject;
     date           = data.date;
     from           = data.from;
     content        = data.contents;
 }
예제 #4
0
    private IEnumerator MessageRoutine()
    {
        PhuneUI ui = FindObjectOfType <PhuneUI>();

        Global.Instance().Input.RemoveListener(this);
        ui.SelectEntry(true);
        yield return(ui.HideRoutine());

        yield return(CoUtils.Wait(0.5f));

        ui.AddDrop(data);
        Global.Instance().Memory.SetSwitch("take2", true);
    }
예제 #5
0
    public void OnInteract(object payload)
    {
        PhuneUI phune = FindObjectOfType <PhuneUI>();

        foreach (SlowFlashBehavior alerter in phune.tabsToTurnOff)
        {
            alerter.disable = false;
        }
        phune.AddData(program);
        phune.SetDefaultTab(program.category);
        StartCoroutine(phune.ShowRoutine());
        Global.Instance().Memory.SetSwitch(SwitchName(), true);
        gameObject.SetActive(false);
    }
예제 #6
0
    private IEnumerator ElevatorRoutine()
    {
        if (working)
        {
            yield break;
        }
        working = true;
        Global.Instance().Audio.PlaySFX("elevator");
        Global.Instance().Maps.avatar.PauseInput();
        PhuneUI ui = FindObjectOfType <PhuneUI>();

        yield return(ui.HideRoutine());

        yield return(CoUtils.Wait(0.8f));

        SubJitter jitter = FindObjectOfType <SubJitter>();

        jitter.enabled = true;
        yield return(CoUtils.Wait(3.5f));

        jitter.enabled = false;
        Global.Instance().Maps.avatar.UnpauseInput();
        working = false;
    }