Пример #1
0
 public void checkPlanExistence()
 {
     string[] concepts = new string[selectedConcept.Count];
     selectedConcept.CopyTo(concepts);
     Atom[] tmp = ClingoInterface.findPlanWithGivenConcepts(concepts);
     if (tmp != null)
     {
         Debug.Log("Plan Found!");
         replyPanel.SetActive(true);
         replyPanel.GetComponentInChildren <Text>().text = plan2reply(tmp);
         execusePanel.SetActive(true);
         execusePanel.GetComponentInChildren <Text>().text = plan2narrative(tmp);
         win = true;
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     StartCoroutine("LoseTime");
     ClingoInterface.populateConceptSet();
     releaseAllConceptTarget();
 }