revival/game/Assets/Scripts/UI/LoadButton.cs

17 lines
314 B
C#
Raw Permalink Normal View History

2021-02-12 10:32:10 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LoadButton : MonoBehaviour
{
[SerializeField]
private SceneType _sceneToLoad;
[SerializeField]
private SceneLoader _loader;
public void Load()
{
_loader.LoadScene( _sceneToLoad );
}
}