it says not expecting if on line 17.
using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
public bool Grounded;
public float moveSpeed;
public float jumpForce;
private Rigidbody2D myRigid;
// Use this for initialization
void Start () {
myRigid = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update () {
if (!Grounded && myRigid.velocity.y == 0)
{
Grounded = true;
}
if (Input.GetMouseButton (0)){
myRigid.velocity = new Vector2(moveSpeed, myRigid.velocity.y);
}
if (Grounded = true && if (Input.GetMouseButtonDown (1)){
myRigid.velocity = new Vector2(myRigid.velocity.x, jumpForce);
Grounded = false;
}
}