i got the “Assets\Scripts\PlayerController.cs(34,57): error CS1003: Syntax error, ‘,’ expected”
here the Scripts
1.using System.Collections;
2.using System.Collections.Generic;
3.using UnityEngine;
4.
5.[RequireComponent(typeof(CharacterController))]
6.public class PlayerController : MonoBehaviour
7.{
8. public float walkSpeed = 5f;
9. public float jumpHeight = 1.9f;
10. public float gravityScale = -20f;
11.
12. Vector3 moveInput = Vector3.zero;
13. CharacterController characterController;
14.
15. private void Awake()
16. {
17. characterController = GetComponent();
18. }
19.
20. private void Uptade()
21. {
22. Move();
23. }
24.
25. private void Move()
26. {
27. if (characterController.IsGrounded)
28. {
29. moveInput = new Vector3(Input.GetAxis(“Horizontal”), 0f, Input.GetAxis(“Vertical”));
30. moveInput = transform.TransformDirection(moveInput) * walkSpeed;
31.
32. if (Input.GetButtonDown(“jump”))
33. {
34. moveInput.y = Mathf.Sqrt(jumpHeight * -2r * gravityScale);
35. }
36. }
37.
38. moveInput.y += gravityScale * Time.deltaTime;
39. characterController.Move(moveInput * Time.deltaTime);
40. }
41.}
42.