Hello, Can someone help me to fix my problem, currently i have a player that would be jumping into the air. The score is based on how high he can jump, but the problem is when the player fall down, the score will also fall down. What i want is when the player fall down, the score will not fall down, and when the player continue jump up, the score will continue from the last score... Any help appreciated!
Code (CSharp): float highestValue = 0.0f; Transform player; void Update(){ if(player.position.y > highestValue) highestValue = player.position.y; }
Thanks alot @SparrowNest.... I'll try it later.... Later i'll provide snip of the function @Cyber-Dog