Exemplo n.º 1
0
    public void processScrollDynamicInfo(Scroll.ScrollDynamicInfo scrollDynamicInfo)
    {
        if (scrollDynamicInfo.completions.Count != 0)
        {
            LatestCompletions = scrollDynamicInfo.completions[0];
        }
        else
        {
            LatestCompletions = new List <Scroll.ScrollAssignment>();
        }

        LatestRenderedHints = new List <Fact>();

        List <string> hintUris = new List <string>();

        foreach (Scroll.ScrollAssignment currentCompletion in LatestCompletions)
        {
            hintUris.Add(currentCompletion.fact.uri);
        }

        //Update Scroll, process data for later hints and update Uri-List for which hints are available
        hintUris = processRenderedScroll(scrollDynamicInfo.rendered, hintUris);

        if (this.automaticHintGenerationActive)
        {
            //Show that Hint is available for ScrollParameter
            HintAvailableEvent.Invoke(hintUris);
        }
    }
Exemplo n.º 2
0
 void Start()
 {
     HintAvailableEvent.AddListener(OnHintAvailable);
 }