コード例 #1
0
 public void RequestRecommendation(Customer customer)
 {
     ShowRecommendation(true);
     recommendation  = gameLoop.GetLevelDefinition().RecommendationPool.GetRecommendationPool().GetRecommendation();
     currentCustomer = customer;
     NewRecommendationLoaded(customer, recommendation);
 }
コード例 #2
0
 private void HandleRecommendationLoaded(Customer customer, DataRecommendation recommendation)
 {
     if (customer.Equals(this))
     {
         status = Status.Running;
         reWanted.SetActive(false);
         question.SetActive(true);
         question.GetComponentInChildren <UI_QuestionSpeechText>().gameObject.GetComponent <TextMeshProUGUI>().text = recommendation.Question; // setQuestionText(recommendation.Question);
     }
 }
コード例 #3
0
 private void newRecommendationLoaded(Customer customer, DataRecommendation recommendation)
 {
     GetComponentInChildren <UI_QuestionSpeechText>().gameObject.GetComponent <TextMesh>().text = recommendation.Question;
 }
コード例 #4
0
 private void handlerRecommendationLoaded(Customer customer, DataRecommendation recommendation)
 {
     methodImage.sprite = recommendation.ImageMethode;
 }
コード例 #5
0
 private void showFeedback(DataRecommendation recommendation)
 {
     _feedbackImage.sprite = recommendation.ImageFeedback;
     _correctAnswer.text   = recommendation.TextCorrectAnswer;
     _feedback.text        = recommendation.TextFeedback;
 }
コード例 #6
0
 private void newRecommendationOpened(Customer customer, DataRecommendation dataItems)
 {
     setRecommendationItems(dataItems.PossibleSelections);
     grid.enabled = true;
     Debug.Log(dataItems.name);
 }
コード例 #7
0
 private void HandleRecommendationLoaded(Customer customer, DataRecommendation recommendation)
 {
     defaultLookAtPosition = Vcam.Follow;
     Vcam.Follow           = customer.transform;
     Vcam.Priority         = 2;
 }