mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
kit
This commit is contained in:
@@ -5619,7 +5619,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1312893926
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -7996,7 +7996,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1703171242}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -7.95, y: -1.8, z: 0}
|
||||
m_LocalPosition: {x: -7.95, y: -2.89, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
@@ -8580,6 +8580,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
currentLevel: 0
|
||||
i: 2
|
||||
--- !u!4 &1810438011
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -9028,7 +9029,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &2032654768
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -10049,7 +10050,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5439994588211060845}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 50, y: 0.62, z: 0}
|
||||
m_LocalPosition: {x: 0.19, y: -0.7, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 5439994588421920178}
|
||||
|
||||
@@ -6,28 +6,21 @@ using UnityEngine.SceneManagement;
|
||||
public class BeatDark : MonoBehaviour
|
||||
{
|
||||
public int currentLevel;
|
||||
public int i = 2;
|
||||
// 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();
|
||||
}
|
||||
}*/
|
||||
|
||||
public void BeatLevel()
|
||||
{
|
||||
|
||||
if (currentLevel == 3)
|
||||
if (i == currentLevel && i <= 6)
|
||||
{
|
||||
PlayerPrefs.SetInt("CurrentLevel", 4);
|
||||
PlayerPrefs.SetInt("CurrentLevel", i + 1);
|
||||
SceneManager.LoadScene("Real World");
|
||||
Debug.Log(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user