Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

How do i fix this parsing error ?

$
0
0
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(); } void Update () { } void FixedUpdate() { float h = Input.GetAxis("Horizontal"); rb2d.AddForce((Vector2.right * speed) * h); if (rb2d.velocity.x > maxSpeed) { } } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>