Skip to content

Commit

Permalink
fix load laby invi 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomeens committed Jun 12, 2022
1 parent 7b266c6 commit 5e3f85c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Assets/Scripts/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ public void LoadNextScene()
case "Wires":
LoadNextWires();
break;
default: //LabyInvisible Donjon
case "LabyInvisible":
LoadNextLabyInvi();
break;
default: //Donjon
PhotonNetwork.LoadLevel(Scenes[NextSceneDoor]);
break;
}
Expand Down Expand Up @@ -498,8 +501,8 @@ private void LoadNextLabyInvi()
{
if (LabyInviIndex < 2)
{
LabyInviIndex++;
PhotonNetwork.LoadLevel(Scenes["LabyInvisible"]);
LabyInviIndex++;
}
else
{
Expand Down
11 changes: 7 additions & 4 deletions ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,22 @@ EditorBuildSettings:
- enabled: 0
path: Assets/GeneralObjects/Enigmes/CrateLabyrinth/Scenes/CrateLabyrinthScene.unity
guid: 27d2d8aab7e27cd4ebe795258bc07fc2
- enabled: 1
path: Assets/TestScenes/LabyInv.unity
guid: cedf4899de698514f96aca872deca142
- enabled: 1
path: Assets/Scenes/Loading.unity
guid: 8dbee02b5fdbcff4d8c27f39fab7b48f
- enabled: 0
path: Assets/Scenes/FinalScene.unity
guid: 6019098d1a1495945baf872fd98870fb
- enabled: 0
path: Assets/GeneralObjects/Enigmes/Labyrinthe/Labyrinthe.unity
guid: 9faf53a2e4c20d744a8d7b7da8dc3a97
- enabled: 0
path: Assets/GeneralObjects/Enigmes/Arrows/Scenes/ArrowScene.unity
guid: 57aec45c743824849a2890571a01edc0
- enabled: 1
- enabled: 0
path: Assets/GeneralObjects/Enigmes/Wires/Scenes/WiresScene.unity
guid: f773c410ed6d8074d891b1fb509db5da
- enabled: 0
path: Assets/GeneralObjects/Enigmes/Labyrinthe/Labyrinthe.unity
guid: 9faf53a2e4c20d744a8d7b7da8dc3a97
m_configObjects: {}

0 comments on commit 5e3f85c

Please sign in to comment.