Ejemplo n.º 1
0
        IEnumerator WaitBark(float seconds)
        {
            yield return(new WaitForSeconds(seconds));

            dogRenderer.sprite = happyDog;
            // TODO: Play happy bark
            // TODO: Make Rin smile
            dcc.ActivateCanvasWithText("Alright, I guess you can come with me!");
            dcc.DeactivateCanvasWithDelay(3.5f);
            StartCoroutine(WaitPickupDoggo(4.5f));
        }
Ejemplo n.º 2
0
        IEnumerator WaitPunish(float seconds)
        {
            txtChoice1.text = "";
            txtChoice2.text = "";

            yield return(new WaitForSeconds(seconds));

            if (showedEndText)
            {
                bsodCanvas.SetActive(false);
                dcc.ActivateCanvasWithText("Motherfu-");
                dcc.DeactivateCanvasWithDelay(1.7f);
                StartCoroutine(WaitCredits(1.7f));
            }
            else
            {
                // Signal that we need new choices
                choice1index = -1;
                choice2index = -1;
                PlayerInput.Instance.GainControl();
                bsodCanvas.SetActive(false);
                memory       = resetMemoryValue;
                firedAlready = false;
            }
        }