Question by
theklweenex · Dec 06, 2015 at 09:05 PM ·
error message
How do i fix this parsing error ?
using UnityEngine; using System.Collections;
public class Player : MonoBehaviour{
public float maxSpeed = 3;
public float speed = 50f;
public float jumpPower = 150f;
public bool grounded;
private Rigidbody2D rb2d;
void Start ()
{
rb2d = gameObject.GetComponent<Rigidbody2D>();
}
void Update ()
{
}
void FixedUpdate()
{
float h = Input.GetAxis("Horizontal");
rb2d.AddForce((Vector2.right * speed) * h);
if (rb2d.velocity.x > maxSpeed)
{
}
}
}
Comment
Never $$anonymous$$d i think i had a bug it's not there anymore anyway thanks a lot :D