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

how to solve invalid expression ')' in this case, i am new so i dont know

$
0
0
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NewBehaviourScript : MonoBehaviour { public float moveSpeed = 100f; private CharacterController controller; void Start() { controller = GetComponent & lt; CharacterController & gt;(); } void Update() { Vector3 moveDirection = new Vector3(0, 0, constantMotion); moveDirection.x = Input.GetAxis("Horizontal") * moveSpeed; moveDirection.y = Input.GetAxis("Vertical") * moveSpeed; controller.Move(moveDirection * Time.deltaTime); } } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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