On line 19 and 20 it says new expression and unexpected symbol myRigidbody now that i fixed that other issue i have a parsing error on the last line?
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour {
public float moveSpeed;
public float jumpForce;
private Rigidbody2D myRigidbody;
// Use this for initialization
void Start ()
{
myRigidbody = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update ()
{
myRigidbody.velocity = new Vector2(moveSpeed, myRigidbody.velocity.y);
{
if (Input.GetKeyDown(KeyCode.Space) || (Input.GetMouseButtonDown(0) ))
myRigidbody.velocity = new Vector2(myRigidbody.velocity.x, jumpForce);
}
}