Example #1
0
 void Update()
 {
     if (Input.GetMouseButtonUp(0))
     {
         Ray        ray = Camera.main.ScreenPointToRay(Input.mousePosition);
         RaycastHit outInfo;
         if (Physics.Raycast(ray, out outInfo, MaxConversatioNDistance))
         {
             VIDE_Assign assign = outInfo.collider.gameObject.GetComponent <VIDE_Assign>();
             if (assign != null)
             {
                 ConversationUIManager.Instance().StartConversation(assign);
             }
         }
     }
 }
Example #2
0
 public void Answer()
 {
     ConversationUIManager.Instance().AnswerQuestion(AnswerIndex);
 }