public void Awake()
    {
        connectToMySQL = FindObjectOfType <ConnectToMySQL>();

        logs = new Dictionary <string, List <string> >()      //create a new dictionary

        {
            { "Email", new List <string>() },
            { "Date", new List <string>() },
            { "Time", new List <string>() },
            { "UserID", new List <string>() },
            { "GameType", new List <string>() },
            { "InputType", new List <string>() },
            { "InputResponders", new List <string>() },
            { "HitType", new List <string>() },
            { "TargetNumber", new List <string>() },
            { "TargetID", new List <string>() },
            { "SessionTime", new List <string>() },
            { "DeltaTime", new List <string>() },
            { "TargetX", new List <string>() },
            { "TargetY", new List <string>() },
            { "HitX", new List <string>() },
            { "HitY", new List <string>() },
            { "HitOffsetX", new List <string>() },
            { "HitOffsetY", new List <string>() },
            { "OutsetTargetX", new List <string>() },
            { "OutsetTargetY", new List <string>() },
            { "TargetDeltaX", new List <string>() },
            { "TargetDeltaY", new List <string>() },
            { "OutsetHitX", new List <string>() },
            { "OutsetHitY", new List <string>() },
            { "DeltaHitX", new List <string>() },
            { "DeltaHitY", new List <string>() },
            { "TargetDiameter", new List <string>() },
            { "ColliderDiameter", new List <string>() },
            { "Backtracking", new List <string>() },
            { "ErrorTargetID", new List <string>() },
            { "TargetsDistance", new List <string>() },
            { "DateId", new List <string>() }
        };

        var optionsList = Enum.GetNames(typeof(InputResponders)).ToList();

        inputResponderDropdown.AddOptions(optionsList);

        var inputTypeList = Enum.GetNames(typeof(InputType)).ToList();

        inputTypeDropdown.AddOptions(inputTypeList);

        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(this);
        }

        // Don't run if UserID isn't set

        /*		if(userID == ""){
         *      Debug.LogError("Please set User ID");
         *      EditorApplication.ExecuteMenuItem("Edit/Play");
         * }
         */


        // directory = Application.persistentDataPath + "/Data/";

        if (Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor)
        {
            directory = "C:\\rtii\\" + "tunnelgoalfitts" + "\\";
            print("Windows");
        }
        else if (Application.platform == RuntimePlatform.LinuxPlayer || Application.platform == RuntimePlatform.LinuxEditor)
        {
            directory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "/rtii/" + "tunnelgoalfitts" + "/";
            print("Linux");
        }
        else if (Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.OSXPlayer)
        {
            directory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "/rtii/" + "tunnelgoalfitts" + "/";
            print("Mac OSX");
        }
        else
        {
            directory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "/rtii/" + "tunnelgoalfitts" + "/";
            print("Unknown");
        }

/*
 *      directory = Application.dataPath + "/../Data/";
 */

        if (!Directory.Exists(directory))
        {
            Directory.CreateDirectory(directory);
        }

        _userID          = GameObject.Find("ConnectToArduino").GetComponent <ConnectToArduino>().email;
        _inputType       = (InputType)inputTypeDropdown.value;
        _inputResponders = (InputResponders)inputResponderDropdown.value;
    }
 public void onInputResponder_Changed()
 {
     _inputResponders = (InputResponders)inputResponderDropdown.value;
 }