I am creating a new game in Unity. And I like to create walkthrough guidance for my game that will show after the first signup, like, click here to grab the coins. After collecting coins it should show click here to buy things. These are the things I want to do. How can I do this?
You have to have a plan for each step. Here is a very accurate and simple method that uses
IEnumerator
.Example Guidance:
Now you have to adjust the body of the Guidance with consecutive conditions, remember that access to different conditions is not always easy. But in general the delegate have to return a bool in
WaitUntil
.Extra
Some conditions, such as hitting one of the input keys, will simply work with
() => Input.GetKeyDown
. Some conditions, such as reaching a certain point, can also be applied withVector3.Distance < distance
. But clicking on the UI buttons requires the following combination.