job done!

This commit is contained in:
jimmy Lim 2021-11-12 10:04:38 -05:00
parent e2509ab42d
commit 422fc8494b
2 changed files with 24 additions and 18 deletions

View File

@ -12,6 +12,7 @@ public class Executable : MonoBehaviour
public TextMesh text; public TextMesh text;
public bool IsQuickTeleport = false; public bool IsQuickTeleport = false;
public bool noMovementChange = true; public bool noMovementChange = true;
public bool bloquer = false;
public ChoiceOfMovement nextMouv; public ChoiceOfMovement nextMouv;
void Start() void Start()
@ -26,22 +27,26 @@ public class Executable : MonoBehaviour
public void Execute() public void Execute()
{ {
if (timer) if (!bloquer) {
{ bloquer = true;
timer.Stop(); if (timer)
} {
if (!noMovementChange) timer.Stop();
{ }
PlayerPrefs.SetInt("mouvement", (int)nextMouv); if (!noMovementChange)
} {
if (IsQuickTeleport) PlayerPrefs.SetInt("mouvement", (int)nextMouv);
{ }
SceneManager.LoadScene(NextScene); if (IsQuickTeleport)
} {
else SceneManager.LoadScene(NextScene);
{ }
StartCoroutine("TimerExecute"); else
{
StartCoroutine("TimerExecute");
}
} }
} }
private int count = 0; private int count = 0;
IEnumerator TimerExecute() IEnumerator TimerExecute()
@ -58,7 +63,7 @@ public class Executable : MonoBehaviour
} }
yield return new WaitForSeconds(1f); yield return new WaitForSeconds(1.5f);
if (count <= 0) if (count <= 0)
{ {
SceneManager.LoadScene(NextScene); SceneManager.LoadScene(NextScene);

View File

@ -1,12 +1,13 @@
Bug Unity Général : Bug Unity Général :
- Apès avoir frapper le démon, on voit 5-3-1 au lieu de voir 5-4-3-2-1
Bug Mouvement Joycon : Bug Mouvement Joycon :
Vitesse et mass a modifier : Déplacement trop rapide. Vitesse et mass a modifier : Déplacement trop rapide.
Direction ne suit pas la camera -> Incapable de tourner Direction ne suit pas la camera -> Incapable de tourner
[DONE] [DONE]
Bug Unity Général : Bug Unity Général :
[DONE]- Apès avoir frapper le démon, on voit 5-3-1 au lieu de voir 5-4-3-2-1
[DONE]- Incapable que lorsque j'appuie sur "Play", le jeu soit render dans mon casque. Je suis obligé de build and run à chaque fois. Problème : Incapable de modifier de mouvement en VR [DONE]- Incapable que lorsque j'appuie sur "Play", le jeu soit render dans mon casque. Je suis obligé de build and run à chaque fois. Problème : Incapable de modifier de mouvement en VR
Bug WASDmovement avec VR controllers : Bug WASDmovement avec VR controllers :
[DONE]- quand tourne + avance au max, Character est propulser [DONE]- quand tourne + avance au max, Character est propulser