Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.H))
        {
            cubeManager.HideAndShow();
        }

        if (Input.GetKeyDown(KeyCode.G))
        {
            mesh = GetComponent <MeshFilter>().mesh;

            SetBox();
            CreateGrid();
        }
        if (Input.GetKeyDown(KeyCode.S))
        {
            StartCoroutine("Simplified");
        }
    }