void Awake() { Press_grab = false; Press_trigger = false; Is_reference = true; Has_toggled = false; LoadObjects.Model_reference = null; LoadObjects.Model_distorted = null; // Pass filename to Log script for output file generation if (Start_session) { // Set session SetSession(); // Initialize Store_interaction = Log_interaction; Store_scores = Log_scores; PlayerPrefs.SetInt("_StartSession", 1); PlayerPrefs.SetString("_Batch", Batch_file); if (Protocol.Equals(EvaluationProtocol.Single_stimulus)) { PlayerPrefs.SetString("_Protocol", Protocol.ToString()); } else { PlayerPrefs.SetString("_Protocol", Protocol.ToString() + "-" + Variation.ToString()); } PlayerPrefs.SetInt("_Step", 0); Allow_toggling = PlayerPrefs.GetString("_Protocol").Contains("Alternating") || PlayerPrefs.GetString("_Protocol").Contains("Sequential"); LoadObjects.GetNext(); Start_session = false; } // Render at a platform's default frame rate, specified by the SDK and ignore values specified by the game Application.targetFrameRate = -1; }