private void SetProficiencyDetailsFromTally(int tally, string eng, string cym, out string proficiencyName, out int threshold, DialogueTestDataController.TestType testType)
 {
     proficiencyName = "";
     threshold       = 0;
     if (testType == DialogueTestDataController.TestType.read)
     {
         ReadProficienciesHandler readProficiencyHandler = new ReadProficienciesHandler(eng, cym);
         readProficiencyHandler.GetProficiencyDetailsFromTally(tally, out proficiencyName, out threshold);
     }
     else if (testType == DialogueTestDataController.TestType.write)
     {
         WriteProficienciesHandler writeProficiencyHandler = new WriteProficienciesHandler(eng, cym);
         writeProficiencyHandler.GetProficiencyDetailsFromTally(tally, out proficiencyName, out threshold);
     }
 }
        public void InitialiseMe(string english, string welsh, string tally, int tallyMod, bool skillInc, DialogueTestDataController.TestType testType)
        {
            base.InitialiseMe(english, welsh);
            welshSkillListUI = FindObjectOfType <WelshSkillsListUI>();
            print("WELSH SKILLS LIST UI: " + welshSkillListUI);
            extraInfo         = transform.Find("ExtraInformation");
            progressSlider    = extraInfo.Find("ProgressSlider").GetComponent <Slider>();
            progressLbl       = extraInfo.Find("ProgressLbl").GetComponent <Text>();
            tallyModifier     = extraInfo.Find("TallyModifier").GetComponent <Text>();
            skillsIncrementer = extraInfo.Find("SkillPointIncrementer").GetComponent <Text>();
            int    tallyInt = int.Parse(tally);
            int    threshold;
            string proficiencyString;

            SetProficiencyDetailsFromTally(tallyInt, english, welsh, out proficiencyString, out threshold, testType);
            progressSlider.maxValue = threshold;
            progressSlider.value    = tallyInt;
            progressLbl.text        = proficiencyString;
            SetTallyModifier(tallyMod);
            SetSkillsIncrementer(skillInc);
        }