error CS1026: ) expected is my error message this is my code
using UnityEngine;
public class PlayerMovement : MonoBehaviour {
// This is a reference to the Rigidbody component called "rb"
public Rigidbody rb;
public float forwardforce = 2000f ;
// We marked this as fixedUpdate because we
// are using it to mess with physics.
void FixedUpdate ()
{
rb.AddForce(0, 0, forwardforce * Time.deltaTime); // Add a force of 2000 on the z-axis
if (Input.Getkey("d")
(
rb.Addforce(500*Time.deltatime, 0, 0);
)
}
}
)
for the if statement's condition and you use parenthesis instead of curly braces for the if statement's block. please spend a few minutes proofreading your code befor asking for help