using System;
public class Program
{
public static void Main()
public class Roller : MonoBehaviour
private int health = 10;
public int damage = 0;
Rigidbody rb;
int entries = 0;
void Start()
rb = GetComponent("Rigidbody") as Rigidbody;
}
void Update()
if (Input.GetKey("down"))
rb.AddForce(1, 0, 0);
if (Input.GetKey("up"))
rb.AddForce(-1, 0, 0);
if (Input.GetKey("right"))
rb.AddForce(0, 0, 1);
if (Input.GetKey("left"))
rb.AddForce(0, 0, -1);
if (Input.GetKeyDown("space"))
rb.AddForce(0, 300, 0);