mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
kit
This commit is contained in:
1 parent
2b7c58e9e4
commit
3df15c29fc
2 files changed
+9
-15
No files matched your search
@@ -5619,7 +5619,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!4 &1312893926
|
--- !u!4 &1312893926
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -7996,7 +7996,7 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1703171242}
|
m_GameObject: {fileID: 1703171242}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
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_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
@@ -8580,6 +8580,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
currentLevel: 0
|
currentLevel: 0
|
||||||
|
i: 2
|
||||||
--- !u!4 &1810438011
|
--- !u!4 &1810438011
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -9028,7 +9029,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!4 &2032654768
|
--- !u!4 &2032654768
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -10049,7 +10050,7 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 5439994588211060845}
|
m_GameObject: {fileID: 5439994588211060845}
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
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_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 5439994588421920178}
|
- {fileID: 5439994588421920178}
|
||||||
|
|||||||
@@ -6,28 +6,21 @@ using UnityEngine.SceneManagement;
|
|||||||
public class BeatDark : MonoBehaviour
|
public class BeatDark : MonoBehaviour
|
||||||
{
|
{
|
||||||
public int currentLevel;
|
public int currentLevel;
|
||||||
|
public int i = 2;
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
currentLevel = PlayerPrefs.GetInt("CurrentLevel");
|
currentLevel = PlayerPrefs.GetInt("CurrentLevel");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
/*void Update()
|
|
||||||
{
|
|
||||||
if (Input.GetButtonDown("Jump"))
|
|
||||||
{
|
|
||||||
BeatLevel();
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
public void 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");
|
SceneManager.LoadScene("Real World");
|
||||||
|
Debug.Log(i);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user