This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
angels-and-demons/Angels and Demons/Assets/Scripts/SceneLoader.cs

23 lines
415 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using AngelsDemons;
public class SceneLoader : MonoBehaviour
{
public void StartGame()
{
SceneManager.LoadScene("BoardScene");
}
public void ExitGame()
{
SceneManager.LoadScene("Main");
}
public void RestartGame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
}