Demo entry 6632327

01.usingSystem.Collections;02.usingSystem.Collections.Generic;03.usingUnityEngine;04.05.[RequireComponent(typeof(PlayerController))]06.07.publicclassPlayer:MonoBehaviour{08.09.publicfloatmoveSpeed=5;10.PlayerControllercontroller;11.12.// Use this for initialization 13.voidStart(){14.controller=GetComponent<PlayerController>();15.}16.17.// Update is called once per frame 18.voidUpdate()19.{20.Vector3moveInput=newVector3(Input.GetAxis("Horizontal"),0,Input.GetAxis("Vertical"));21.Vector3moveVelocity=moveInput.normalized*moveSpeed;22.controller.Move(moveVelocity);23.}24.}