Hi guys I have a problem: I have to cross my character in a cube so they teleport to another scene … I tried this script that they suggested but it does not work … The editor gives me this message: The associated script can not be loaded. Please fix any compiler errors and assign a valid scrip.
This is the script:
Using System.Collections;
Using System.Collections.Generic;
Using UnityEngine;
Using UnityEngine.SceneManagement;
Public class loadRoomScene: MonoBehaviour { Private void OnTriggerEnter (Collider sceneTrigger) {
// When your Character collides with the collider box If (sceneTrigger.CompareTag (“TagOfTheColliderThatWillTriggerTheLoading”)) { SceneManager.LoadScene (“NameOfYourScene”, LoadSceneMode.Additive); } } }
What is that I’m wrong?..Please help Me!!