Exemple #1
0
    public void ExecuteChange(string result, Vector3[] positions)
    {
        if (result == "")
        {
            Debug.Log("识别失败");
            recognizePanel.Clear();
            LightClear();
        }
        else
        {
            /*transform.parent.gameObject.SetActive(false);
             * recognizePanel.Clear();
             * Clear();
             * geometryBehaviour.clearElements();
             * geometry.Clear();
             * Function function = (Function)geometry;
             * function.SetWriting(positions, result);
             * geometryBehaviour.AddElements();
             * geometryBehaviour.SetEdgeStyle();
             * geoController.ChangeConditionState(ToSprite(Application.dataPath + "/temp/fomula.png"));*/
            Function function = (Function)geometry;
            function.SetWriting(positions, result);
            geometryBehaviour.AddElements();
            geometryBehaviour.SetEdgeStyle();
            Tool tool = new Tool();
            tool.Name = "Free";
            tool.Icon = Resources.Load <Sprite>("free");
            geoController.AddConditionOperation(tool);
            //geoController.ChangeConditionState(ToSprite(Application.dataPath + "/temp/fomula.png"));

            recognizePanel.Clear();
            LightClear();
        }
    }
    private void ClickSubmit()
    {
        // if (OnClickSubmit != null)
        //     OnClickSubmit(form);
        transform.parent.gameObject.SetActive(false);
        recognizePanel.Clear();
        Clear();

        if (Drawing)
        {
            AddShape();
        }
    }
Exemple #3
0
    private void ClickSubmit()
    {
        transform.parent.gameObject.SetActive(false);
        String command = recognizePanel.GetWords();

        recognizePanel.Clear();
        Clear();
        if (Drawing)
        {
            AddShape();
        }
        else
        {
            GameObject.Find("GeoController").GetComponent <GeoController>().Classify(command);
        }
    }
Exemple #4
0
 public void Clear()
 {
     gameObject.SetActive(false);
     if (recognizePanel != null)
     {
         recognizePanel.Clear();
     }
 }