I am trying to add a score system to my 2.5d space shooter, i have a score system in place, i just have to link it to actually scoring when i hit the enemy ship.
The script has been implemented in mainCamera and is working, just need that connection:)
var score1 : GUIText;
var oneTime;
var KeepScore : float;
var myScore : int = 0;
var myCurScore : int = 0;
function Update ()
{
score1.text = "Score: " + myScore;
if (myScore < myCurScore)
{
myScore++;
}
if(Input.GetKeyDown("b"))
{
myCurScore += 100;
}
}