Esempio n. 1
0
    private void FixedUpdate()
    {
        float Player_z = GameObject.Find("Wizard").transform.position.z;

        if (goalStop == false)
        {
            this.GetComponent <Rigidbody>().velocity = PlayerMove.GetPlayerVelocity();
        }
        else
        {
            this.GetComponent <Transform>().position = new Vector3(point.x, this.GetComponent <Transform>().position.y, point.z);
        }
    }
Esempio n. 2
0
 private void FixedUpdate()
 {
     this.GetComponent <Rigidbody>().velocity = -backgroundSpeed *playermove.GetPlayerVelocity();
 }