public void ClickingTask() { if (timeEnded) { discussText.SetActive(false); timeEnded = false; StatementTextObject.GetComponentInChildren <Text>().enabled = true; agreeBar.SetActive(true); } hasAccepted = true; storyImageSlideController.moveImage++; storyImageSlideController.MoveStoryImage(); if (canClickNext) { answers.AnswerValueCheck(); lastStatement = currentStatement; StatementTextObject.text = statementText[currentTextIndex]; currentTextIndex++; characterManager.SaveAnswer(); currentStatement++; } if (currentTextIndex == 7 || currentTextIndex == 15) { canClickNext = false; StartCoroutine(Wait(5)); timeEnded = true; } hasAccepted = false; }
public void ClickingTask() { hasAccepted = true; if (canClickNext) { answers.AnswerValueCheck(); var statementDatas = ScriptableObject.CreateInstance <ScoreKeeper>(); answers.GetData(); lastStatement = currentStatement; StatementTextObject.text = statementText[currentTextIndex]; currentTextIndex++; //if (swordSlider.value == 0) //{ // Debug.Log("give a charecter a point"); //} //if(swordSlider.value == 1){ } //if (swordSlider.value == 2) { } //if (swordSlider.value == 3) {Debug.Log("je hebt oneens geselecteerd"); } // Antwoord.CheckValue() //loop functie givepoints testingArrayOrList.SaveAnswer(); currentStatement++; Debug.Log(currentStatement); } if (currentTextIndex == 5 || currentTextIndex == 11 || currentTextIndex == 18) { canClickNext = false; StartCoroutine(Wait(5)); } hasAccepted = false; }