Answer the question
In order to leave comments, you need to log in
How to complete the level?
There is a level 1m long, at the end there is a trigger, upon reaching which a new prefab of the level is loaded. The length of the levels and their directions are different. There is only one finish for all levels. Algorithmization of movement is an extreme option. There is an option to create a fake finish, upon contact with which the player moves to the position of the real finish. I also thought to put the finish logic on the player and, when it comes into contact with an object with the finish tag, turn on the finish logic. But I do not want to overload with unnecessary options. There is also an option to end the level if there are no obstacles in front of the player. I check obstacles with Raycast. That is, to transfer the functions of the finish as a singleton to the player.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question