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

Error cs1547 and cs1525 help: Keyword 'void' cannot be used in this context and unexpected symbol

$
0
0
This is the script using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { private Rigidbody rb; // Use this for initialization void Start () { { rb = GetComponent(); } // Update is called once per frame void FixedUpdate () { float moveHorizontal = Input.GetAxis("Horizontal"); float moveVertical = Input.GetAxis ("Vertical"); } Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical); rb.AddForce (movement * speed); }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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