mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
38 lines
796 B
C#
38 lines
796 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
|
public class BeatCrowds : MonoBehaviour
|
|
{
|
|
public int currentLevel;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
currentLevel = PlayerPrefs.GetInt("CurrentLevel");
|
|
}
|
|
|
|
// Update is called once per frame
|
|
/*void Update()
|
|
{
|
|
if (Input.GetButtonDown("Jump"))
|
|
{
|
|
BeatLevel();
|
|
}
|
|
}*/
|
|
|
|
void BeatLevel()
|
|
{
|
|
|
|
if (currentLevel == 6)
|
|
{
|
|
PlayerPrefs.SetInt("CurrentLevel", 7);
|
|
SceneManager.LoadScene("Real World");
|
|
}else
|
|
{
|
|
SceneManager.LoadScene("Real World");
|
|
}
|
|
}
|
|
}
|