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

Unexpected symbol "void" error

$
0
0
using UnityEngine; using System.Collections; public class PlayerController2D : MonoBehaviour { Rigidbody2D rb2d; void Start() { rb2d = GetComponent(); } var MoveSpeed = 0.5 void Update () { if (Input.GetKey(KeyCode.UpArrow)) { transform.Translate(Vector3, MoveSpeed, 0, 0); } } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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