In the roll - a- ball project, my ball was rolling fine then mono develop crashed. I could remember where I was in the tutorial. I re-did everything and the ball doesn’t move. I’ve done everything I could, but to no avail. what can I do?
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
public float speed;
public GUIText countText;
public GUIText winText;
private int count;
void start()
{
count = 0;
SetCountText ();
winText.text = "";
}
void FixedUpdate()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
rigidbody.AddForce(movement * speed * Time.deltaTime);
}
// Destroy everything that enters the trigger
void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "PickUp")
{
other.gameObject.SetActive(false);
count = count + 1;
SetCountText ();
}
}
void SetCountText()
{
countText.text = "Count: " + count.ToString();
if(count >= 12)
{
winText.text = "YOU WIN!";
}
}
}
here is what it looks like in unity. extreme rookie to this. please help.

This is the correct answer. Or at least something that must be done. Have you tried it?
– Jwizard93