Exemple #1
0
    private void Update()
    {
        if (_pose != null)
        {
            //textCoord.text = (moveObj.transform.position).ToString();
        }
        if (Input.GetKeyDown(KeyCode.C))
        {
            proBuilderScript = GameObject.FindObjectOfType <ProBuilderScript>();
            positions.Add(moveObj.transform.position);
            Debug.Log("Added!");
            Debug.Log(moveObj.transform.position);
        }
        if (Input.GetKeyDown(KeyCode.G))
        {
            proBuilderScript.CreateMeshes(positions);
            Debug.Log("KeyCode.G");
        }
        float horizontal = Input.GetAxis("Horizontal");
        float vertical   = Input.GetAxis("Vertical");

        transform.position += new Vector3(horizontal, 0, vertical);
    }
Exemple #2
0
 private void Start()
 {
     proBuilderScript = GameObject.FindObjectOfType <ProBuilderScript>();
     moveObj          = GameObject.Find("MoveObject");
 }