did a minor tweak

This commit is contained in:
Zoe J
2022-02-26 18:45:46 -06:00
parent 8f2a693284
commit 11a2af2f5f
302 changed files with 1022 additions and 167 deletions
+37
View File
@@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class BeatSpeed : 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 == 2)
{
PlayerPrefs.SetInt("CurrentLevel", 3);
SceneManager.LoadScene("Real World");
}
else
{
SceneManager.LoadScene("Real World");
}
}
}