using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement_Script : MonoBehaviour
{
public float movementSpeed= 1f;
public float gravityFactor;
public float currentVelY;
public CharacterController controller;
public void Start()
{
controller = GetComponent();
}
public void Update()
{
float inputX = Input.GetAxisRaw (“Horizontal”);
float inputY = Input.GetAxisRaw(“Vertical”);
currentVelY = -gravityFactor;
controller.Move (new Vector3 (inputX,currentVelY,inputY)* movementSpeed * Time.deltaTime );
}
}