private void OnTriggerEnter2D(Collider2D collision) { if (SceneManager.GetActiveScene().name == "Dia_4") { if (collision.gameObject.name == finalizarDEMO.name) { SceneManager.LoadScene(6); } } if (collision.gameObject.CompareTag("NPC1")) { scriptNPC1_MainScript = collision.GetComponent <NPC1_MainScript>(); entrouNPC = true; } if (collision.gameObject.CompareTag("Interativo")) { scriptInterativos = collision.GetComponent <Interativos>(); entrouInterativo = true; } if (collision.gameObject.CompareTag("DPT")) { script_Controller_DialoguePerTime = collision.GetComponent <Controller_DialoguePerTime>(); entrouDPT = true; } if (collision.gameObject.CompareTag("AsD")) { script_Controller_Assorted_Dialogues = collision.GetComponent <Controller_Assorted_Dialogues>(); entrouAsD = true; } if (collision.gameObject.CompareTag("Teleporte")) { scriptTeleporte = collision.GetComponent <Teleporte>(); entrouTeleporte = true; } }