From 422fc8494b7348a9611e2f286beb1d1c6b0b6498 Mon Sep 17 00:00:00 2001 From: jimmy Lim Date: Fri, 12 Nov 2021 10:04:38 -0500 Subject: [PATCH] job done! --- Assets/Scripts/HammerScript/Executable.cs | 37 +++++++++++++---------- Task/BugList.txt | 5 +-- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/Assets/Scripts/HammerScript/Executable.cs b/Assets/Scripts/HammerScript/Executable.cs index 0dd945a..83094b7 100644 --- a/Assets/Scripts/HammerScript/Executable.cs +++ b/Assets/Scripts/HammerScript/Executable.cs @@ -12,6 +12,7 @@ public class Executable : MonoBehaviour public TextMesh text; public bool IsQuickTeleport = false; public bool noMovementChange = true; + public bool bloquer = false; public ChoiceOfMovement nextMouv; void Start() @@ -26,22 +27,26 @@ public class Executable : MonoBehaviour public void Execute() { - if (timer) - { - timer.Stop(); - } - if (!noMovementChange) - { - PlayerPrefs.SetInt("mouvement", (int)nextMouv); - } - if (IsQuickTeleport) - { - SceneManager.LoadScene(NextScene); - } - else - { - StartCoroutine("TimerExecute"); + if (!bloquer) { + bloquer = true; + if (timer) + { + timer.Stop(); + } + if (!noMovementChange) + { + PlayerPrefs.SetInt("mouvement", (int)nextMouv); + } + if (IsQuickTeleport) + { + SceneManager.LoadScene(NextScene); + } + else + { + StartCoroutine("TimerExecute"); + } } + } private int count = 0; IEnumerator TimerExecute() @@ -58,7 +63,7 @@ public class Executable : MonoBehaviour } - yield return new WaitForSeconds(1f); + yield return new WaitForSeconds(1.5f); if (count <= 0) { SceneManager.LoadScene(NextScene); diff --git a/Task/BugList.txt b/Task/BugList.txt index 9465b01..c46aa92 100644 --- a/Task/BugList.txt +++ b/Task/BugList.txt @@ -1,12 +1,13 @@ 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 : Vitesse et mass a modifier : Déplacement trop rapide. Direction ne suit pas la camera -> Incapable de tourner [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 Bug WASDmovement avec VR controllers : [DONE]- quand tourne + avance au max, Character est propulser