Question by
SchneeBaum · Aug 27, 2017 at 09:53 PM ·
c#scene-loadinglevel load
Variable Scene Loader
I need a script that can load multiple scenes using editor assignments on pressing E. This is my current script
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.SceneManagement;
public class levelloader : MonoBehaviour {
[SerializeField] string Level;
public void LoadScene() {
if (Input.GetButtonDown("e"))
{
SceneManager.LoadScene(Level);
}
}
}
Comment