public void ShowSelectionHint(int hintIndex, GameObject correctAnswerContainer) { ShowAnswer showAnswer = QuestionSystemController.Instance.partAnswer.showAnswer; List <int> selectionIndex = new List <int>(); for (int i = 0; i < showAnswer.hintContainers.Count; i++) { if (showAnswer.hintContainers[i].GetComponent <Button>().interactable) { selectionIndex.Add(i); } } // selectionIndex = ListShuffleUtility.Shuffle (selectionIndex); showAnswer.hintContainers[selectionIndex[0]].GetComponentInChildren <Text>().text = questionAnswer[selectionIndex[0]].ToString(); showAnswer.hintContainers [selectionIndex [0]].GetComponent <Image> ().color = new Color32(255, 255, 255, 255); showAnswer.hintContainers[selectionIndex[0]].GetComponent <Button> ().interactable = false; }
public void ShowSelectionHint(int hintIndex, GameObject correctAnswerContainer) { ShowAnswer showAnswer = QuestionSystemController.Instance.partAnswer.showAnswer; List <int> selectionIndex = new List <int>(); for (int i = 0; i < showAnswer.hintContainers.Count; i++) { if (showAnswer.hintContainers[i].GetComponent <Button>().interactable) { selectionIndex.Add(i); } } // selectionIndex = ListShuffleUtility.Shuffle (selectionIndex); TweenFacade.TweenScaleToLarge(showAnswer.hintContainers[selectionIndex[0]].transform, Vector3.one, 0.3f); showAnswer.hintContainers[selectionIndex[0]].GetComponent <Button> ().interactable = false; showAnswer.hintContainers [selectionIndex [0]].GetComponentInChildren <Text> ().text = letterArray [selectionIndex [0]].ToString(); }