using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
public class SceneTeleport : Interactible
{
public Scene openScene;//make this variable visible in the properties in the Unity Engine? I know I need another variable.
public override void OnInteraction()
{
SceneManager.LoadScene(openScene.name);
}
}
You cant make a variable with a scene as a type visible in the inspector, but you can use an int as an id and get the scene with SceneManager. GetSceneAt or use a string, which obe is a little bit friendlier, and do GetSceneByName