Added Heights Level

This commit is contained in:
Zoe J committed 2022-02-25 19:52:26 -06:00
1 parent 4954204e99
commit edcc7df8f6
9 files changed
+2456 -27

No files matched your search

+2 -2
View File
@@ -25,9 +25,9 @@ public class BeatCrowds : MonoBehaviour
void BeatLevel()
{
if (currentLevel == 1)
if (currentLevel == 2)
{
PlayerPrefs.SetInt("CurrentLevel", 2);
PlayerPrefs.SetInt("CurrentLevel", 3);
SceneManager.LoadScene("Real World");
}else
{
+37
View File
@@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class BeatHeights : 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 == 1)
{
PlayerPrefs.SetInt("CurrentLevel", 2);
SceneManager.LoadScene("Real World");
}
else
{
SceneManager.LoadScene("Real World");
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 13ce7dadc96f7ff43a1d8b51afb8322e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b23f36c2e3b3a284baae9cff59bb54e7
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+5 -5
View File
@@ -557,11 +557,11 @@ PrefabInstance:
objectReference: {fileID: 1477723291}
- target: {fileID: 3617937272123271708, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: CancelInvoke
value: Level1
objectReference: {fileID: 0}
- target: {fileID: 3617937272123271708, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: UnityEngine.MonoBehaviour, UnityEngine
value: WorldScreenController, Assembly-CSharp
objectReference: {fileID: 0}
- target: {fileID: 4116959943985034055, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_LocalRotation.w
@@ -593,7 +593,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8900608489955080584, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_Name
value: Crowds
value: Heights
objectReference: {fileID: 0}
- target: {fileID: 8900608489955080584, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_IsActive
@@ -1113,7 +1113,7 @@ PrefabInstance:
objectReference: {fileID: 1477723291}
- target: {fileID: 3617937272123271708, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value:
value: Level2
objectReference: {fileID: 0}
- target: {fileID: 3617937272123271708, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
@@ -1149,7 +1149,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8900608489955080584, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_Name
value: Speeds
value: Crowds
objectReference: {fileID: 0}
- target: {fileID: 8900608489955080584, guid: 158e2c5bf8709994a87286eb92997cd6, type: 3}
propertyPath: m_IsActive
+1 -1
View File
@@ -30,7 +30,7 @@ public class WorldScreenController : MonoBehaviour
{
if (currentLevel >= 1)
{
SceneManager.LoadScene("Crowds Level");
SceneManager.LoadScene("Heights Level");
}
}