Projext/Assets/Scripts/Systems/Scene/LoadScene.cs

15 lines
298 B
C#
Raw Normal View History

2026-01-30 09:27:44 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LoadScene : MonoBehaviour
{
[SerializeField] private string sceneName;
public void LoadOtherScene()
{
SceneManager.LoadScene(sceneName);
}
}