You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
334 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace Animmal.Kubikos
  5. {
  6. public class LoadSceneByName : MonoBehaviour
  7. {
  8. public string SceneName;
  9. public void LoadLevel()
  10. {
  11. UnityEngine.SceneManagement.SceneManager.LoadScene(SceneName);
  12. }
  13. }
  14. }