SceneManagement.cs
556 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.isCaptured) {
SceneManager.LoadScene(2);
}
}
public void goToARScene() {
SceneManager.LoadScene(1);
}
public void goToGameScene() {
SceneManager.LoadScene(1);
ARPlaceOnPlane.isSetted = false;
}
}