I have a a script that is meant to play with the character motor class when you collect a specific amount of objects. This is a 2D side scroller. The script dosnt make a compiler error but neither does it work.
var score : int = 2;
var speed : int = 10;
function Update () {
if(ScoreSystem.myScore == score){
speed += CharacterMotor.maxSidewaysSpeed;
}
}
I understand those are spaces, there is no tab button on a phone