Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        cam.transform.position = new Vector3(this.transform.position.x, cam.transform.position.y, this.transform.position.z - 20f);

        float hValue = Input.GetAxisRaw("Horizontal");
        float vValue = Input.GetAxisRaw("Vertical");

        _pAvatar.SetLinearRatio(vValue);
        _pAvatar.SetAngularRatio(hValue);
    }