my game is about to collect to 2 different object in certain time , for example apples and bananas, when I’m collect the score up to 40 for both of them, my scenes will load to win page if time=0 without those score i will load to lose page…but the problem is nothing happen when i collect those score until time =0 it’s will load to lose page not win page…
this is my code.
function Update(){
if(scoreApple>=40&scoreBanana>=40)
{
Application.LoadLevel(2);
}
if (Seconds<=0)
{
Application.LoadLevel(3);
}
}
please help me!!.thanks ![]()