please can someone help with a script in c# to implement and increase in score over time.
For example every second score will go up by 5.
please can someone help with a script in c# to implement and increase in score over time.
For example every second score will go up by 5.
var delay : float; //delay of the Invoke, in seconds
var repeatTime : float //interval at which the function will be fired
var score : int;
var scoreIncrease : int;
function Start()
{
InvokeRepeating("IncreaseScore",delay,repeatTime);
}
function IncreaseScore()
{
score+=scoreIncrease;
}
Don’t forget to say thanks! Actualy, please would have been nice too…