mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
Added Heights Level
This commit is contained in:
1 parent
4954204e99
commit
edcc7df8f6
9 files changed
+2456
-27
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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:
|
||||
@@ -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
|
||||
|
||||
@@ -30,7 +30,7 @@ public class WorldScreenController : MonoBehaviour
|
||||
{
|
||||
if (currentLevel >= 1)
|
||||
{
|
||||
SceneManager.LoadScene("Crowds Level");
|
||||
SceneManager.LoadScene("Heights Level");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user