I have write the script and didnt get any error but my ball wont move anyone know how to fix this ?
and does anyone know Tutorial simple game for Unity 5 because it’s confusing me for unity 4 tutorial
sorry for bad english
using UnityEngine;
using System.Collections;
public class Playercontrol : MonoBehaviour
{
public float speed;
void Fixedupdate()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
GetComponent<Rigidbody>().AddForce(movement*speed*Time.deltaTime);
}
}