G
G
Gregory2562022-02-27 12:34:25
Unity
Gregory256, 2022-02-27 12:34:25

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

1 answer(s)
M
miXtik789, 2022-02-27
@miXtik789

I did something similar but I do not recommend using a trigger

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question