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 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);

View File

@ -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