SceneManagement.cs
739 Bytes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneManagement : MonoBehaviour
{
// Start is called before the first frame update
public void goToGalleryScene() {
if (Hunting.isGhostInfoSaved) {
SceneManager.LoadScene(2);
}
}
public void goToARScene() {
SceneManager.LoadScene(1);
}
public void goToIntro()
{
SceneManager.LoadScene(0);
Hunting.isInit = true;
CreateManager.isSetted = false;
}
public void goToGameScene() {
SceneManager.LoadScene(1);
CreateManager.isSetted = false;
ARPlaceOnPlane.isSetted = false;
}
}