예제 #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        if (!isLocalPlayer)
        {
            return;
        }

        GetPlayerInput();
        movementScript.RotateTankTurret(_mousePosition);

        movementScript.MovePlayer(Mathf.Abs(_verticalInput));
        if (_horizontalInput != 0)
        {
            movementScript.RotateTankBody(_horizontalInput);
        }
    }
예제 #2
0
 void Update()
 {
     GetPlayerInput();
     movementScript.RotateTankTurret(_mousePosition);
 }