This repository has been archived on 2024-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
evermillion/Assets/Brick Project Studio/_BPS Basic Assets/Common/Scripts and Animations/First Person Player/SceneSwitchGen.cs

62 lines
1.4 KiB
C#
Raw Normal View History

2024-06-05 03:10:54 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace SojaExiles
{
public class SceneSwitchGen : MonoBehaviour
{
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Alpha1))
{
SceneManager.LoadScene("Structure_01");
}
if (Input.GetKeyDown(KeyCode.Alpha2))
{
SceneManager.LoadScene("Structure_02");
}
if (Input.GetKeyDown(KeyCode.Alpha3))
{
SceneManager.LoadScene("Structure_03");
}
if (Input.GetKeyDown(KeyCode.Alpha4))
{
SceneManager.LoadScene("Structure_04");
}
if (Input.GetKeyDown(KeyCode.Alpha5))
{
SceneManager.LoadScene("Structure_05");
}
if (Input.GetKeyDown(KeyCode.Alpha6))
{
SceneManager.LoadScene("Structure_06");
}
if (Input.GetKeyDown(KeyCode.Alpha7))
{
SceneManager.LoadScene("Props Furniture Showcase");
}
if (Input.GetKeyDown(KeyCode.Escape))
{
Application.Quit();
}
}
}
}