mirror of
https://github.com/Fluffy-Bean/Again.git
synced 2025-05-14 13:12:16 +00:00
17 lines
389 B
C#
17 lines
389 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class levelLoader : MonoBehaviour
|
|
{
|
|
public void NextLevel()
|
|
{
|
|
if (SceneManager.GetActiveScene().name == "menu")
|
|
{
|
|
PlayerPrefs.SetFloat("lowestTime",9999f);
|
|
}
|
|
SceneManager.LoadScene("game");
|
|
Time.timeScale = 1f;
|
|
}
|
|
}
|