Esempio n. 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();
        }
    }