progress
This commit is contained in:
21
Assets/Scripts/SceneLodarManual.cs
Normal file
21
Assets/Scripts/SceneLodarManual.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class SceneLodarManual : MonoBehaviour
|
||||
{
|
||||
public Button button;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
button.onClick.AddListener(LoadScene);
|
||||
}
|
||||
|
||||
void LoadScene()
|
||||
{
|
||||
SceneManager.LoadScene("LevelOne");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user