Hey there! I was wondering if there is a way to code a score adder for a rotating object, for every 90 degrees, which would be like 4 per full rotation, I’ve already made the thing I want to rotate rotate, I also do not want to work with physics (Like raycasters) because the thing will be turning FAST at one point…
IEnumerator ScorerCalculator()
{
previousRotation = player.rotation;
while(running)
{
if(previousRotation + 90 >= player.rotation)
{
score++;
previousRotation = player.rotation;
}
yield return null;
}
}