I’m making a game where the character you are is in school. But I don’t know how to check if I got to class in time. I have a clock so I know what time it is.
I’m not asking for a full script, I just need help to an idea on how to check if I made it to class before it began.
As the time is ticking down, i’m sure you have some event where if the player doesn’t do X by some Time N, fail.
You could create a collider at the door of the class room, as the character enters the class room before Time N happens, success, otherwise fail. After which the game goes on.
This collider could be attached to cube, or just an empty game object and attach relevant scripts that check for collisions.