Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
what do i wrong
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMotor : MonoBehaviour { private CharacterController controller; private Vector3 playerVelocity; public float speed = 5f; // Start is called before the first frame update void Start() { controller = GetComponent<CharacterControler> } // Update is called once per frame void Update() { } //receiv the inputs for our InputManager.cs and apply them to our character controller. public void ProcessMove(Vector2 input) { Vector3 moveDirection = Vector3.zero; moveDirection.x = input.x; moveDirection.z = input.y; controller.Move(transform.TransformDirection(moveDirection) * speed * Time.deltaTime); } }
run
|
edit
|
history
|
help
0
merge 2 sorted array
1 through 1000
Testing 10
pause a thread
Symantic check for object type variables
Complex
Builder Design Pattern
Lambda Expressions Are Cool
Code challenge: Integer Comparison - Overkill - Function Dictionary
Base