Mentions légales du service

Skip to content
Snippets Groups Projects
Commit eb61c2e2 authored by BRUNEAU Julien's avatar BRUNEAU Julien
Browse files

+ fix bug

parent 495cb02c
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ public class MainManager : MonoBehaviour {
// Handle key/button input in LateUpdate
private void LateUpdate()
{
if (currentTrialManager.isReady() && (ToolsInput.GetKeyDown(KeyCode.Space) || ToolsInput.GetButtonDown(ButtonCode.Fire1)))
if ((currentTrialManager==null || currentTrialManager.isReady()) && (ToolsInput.GetKeyDown(KeyCode.Space) || ToolsInput.GetButtonDown(ButtonCode.Fire1)))
{
if (!trialStarted)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment