Result.cs
477 Bytes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Result : MonoBehaviour
{
private float timer;
// Start is called before the first frame update
void Start()
{
timer = 0;
}
// Update is called once per frame
void Update()
{
timer += Time.deltaTime;
if (timer > 5)
{
SceneManager.LoadScene("Final");
}
}
}