示例#1
0
    private void OnTriggerStay2D(Collider2D collision)
    {
        if (isAcitve)
        {
            if (collision.tag == "Player")
            {
                print("hello there");
                if (Input.GetKey(KeyCode.E))
                {
                    dialogue.ShowDialogueQuestionMailbox();
                }


                if (dialogue.isYes)
                {
                    if (currentScene.name == "Tiled")
                    {
                        GameManager.urenverantwoordingPalletTown = true;
                    }
                    if (currentScene.name == "ArtistTown")
                    {
                        GameManager.urenverantwoordingArtistTown = true;
                    }

                    Destroy(this);
                }
            }
        }
    }