Пример #1
0
    public void UnlockPathDrunk()
    {
        blockingCollider.enabled = true;
        Destroy(blockingCollider);
        Destroy(this.GetComponent <BoxCollider2D>());
        this.transform.position += new Vector3(0, 0.03f, 0.1f);
        this.phoneHour.text      = "20:13";
        AkSoundEngine.PostEvent("FX_Rot", this.gameObject);

        if (!used)
        {
            desaturator.desaturateScreen();
            this.used = true;
        }
    }
Пример #2
0
    public void UnlockPath()
    {
        Destroy(blockingCollider);
        //this.transform.position += new Vector3(0, 0.05f, 0.1f);
        Camera.main.GetComponent <CameraMovement>().followCharacter();
        this.phoneHour.text = "20:12";
        this.GetComponent <Animator>().SetTrigger("talkToGeraldine");

        AkSoundEngine.PostEvent("VO_Hey", this.gameObject);

        if (!used)
        {
            desaturator.desaturateScreen();
            used = true;
        }
    }
Пример #3
0
    public void Leave()
    {
        EventManager.canDance = false;
        this.phoneHour.text   = "20:13";
        Debug.Log("To " + Mathf.Infinity + " and beyond");
        Destroy(blockingCollider);
        Destroy(this.GetComponent <BoxCollider2D>());
        playerAnimator.SetTrigger("isDancing");
        playerAnimator.gameObject.GetComponent <PlayerMovement>().dancing = true;
        this.leaving = true;

        if (!used)
        {
            desaturator.desaturateScreen();
            used = true;
        }
    }
Пример #4
0
    public void OpenDoor()
    {
        if (DoOnce == false)
        {
            Destroy(blockingCollider);
            //this.transform.position += new Vector3(0, 0.05f, 0.1f);
            AkSoundEngine.PostEvent("FX_Couple_Stop", this.gameObject);
            this.phoneHour.text = "20:13";
            porte.GetComponent <Animator>().SetTrigger("porteOpen");
            DoOnce = true;

            if (!used)
            {
                desaturator.desaturateScreen();
                used = true;
            }
        }
    }