示例#1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButton(0))
        {
            BoxDetection.holeCheck();
            Click = true;

            Debug.Log("it works");
            size.y += 0.05f;
            size.x += 0.05f;
            this.transform.Rotate(rotation * Time.deltaTime);
            this.transform.localScale = size;
        }

        if (Input.GetMouseButtonUp(0))
        {
            Click = false;
            Debug.Log("pizza is done");
        }
    }