Quantcast
Viewing all articles
Browse latest Browse all 6

What did I do Wrong In Roll-A-Ball character controller?

I get an "unexpected symbols" in this character movement codefor the Roll-A-Ball tutorial! Please help! My code is in C# using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { void FixedUpdate() { float moveHorizontal = Input.getAxis ("Horizontal"); float moveVertical = Input.getAxis("Vertical"): Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical); rigidbody.AddForce(movement); } }

Viewing all articles
Browse latest Browse all 6

Trending Articles