<commit_before>﻿using UnityEngine;
using System.Collections;

public class LoadScene : MonoBehaviour {

	public int sceneToLoad;

	private SceneFadeInOut sceneFadeInOut;

	public void OnEnable () {
		if (GameObject.FindGameObjectWithTag(Tags.gameController)){
			sceneFadeInOut = GameObject.FindGameObjectWithTag (Tags.gameController).GetComponent<SceneFadeInOut> ();
			sceneFadeInOut.LoadScene(sceneToLoad);
		}
		else{<commit_msg>reset to default persistent data on new stage load<commit_after>﻿using UnityEngine;
using System.Collections;

public class LoadScene : MonoBehaviour {

	public int sceneToLoad;
	public bool resetDefaults;

	private SceneFadeInOut sceneFadeInOut;

	public void OnEnable () {
		if (GameObject.FindGameObjectWithTag(Tags.gameController)){
			sceneFadeInOut = GameObject.FindGameObjectWithTag (Tags.gameController).GetComponent<SceneFadeInOut> ();
			if(resetDefaults){
				GameObject.FindGameObjectWithTag(Tags.mainCamera).GetComponent<PersistentData>().ResetDefaults();
			}
			sceneFadeInOut.LoadScene(sceneToLoad);
		}
		else{
{'fraction_non_alphanumeric': 0.08867924528301886, 'fraction_numerical': 0.0, 'mean_word_length': 6.471830985915493, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5800014', 'n_tokens_mistral': 349, 'n_tokens_neox': 316, 'n_words': 60}