I cant seem to find a script on how to keep score. I want there to be a score on the HUD that goes up over time and one that tells you how many enemies you have killed.
This is pretty simple stuff… maybe you should follow some of the Unity tutorials and familiarize yourself with it before going much further. Anyway, it’d look something like this…
var kills : int = 0; //When an enemy dies, add one to this integer
function OnGUI() {
GUI.Label (Rect (10, 10, 100, 20), ("Kills: " + kills));
}
Check out the following this link for more information about GUI labels. You can also use GUILayouts if the GUI gets a bit more complex.