“This is the 26th day of my participation in the Gwen Challenge in November. Check out the details: The Last Gwen Challenge in 2021.”
👉 About the author
As we all know, life is a long process of constantly overcoming difficulties and reflecting on progress. In this process, there will be a lot of questions and thoughts about life, so I decided to share my thoughts, experiences and stories to find resonance!!
Focus on Android/Unity and various game development tips, as well as various resource sharing (websites, tools, materials, source code, games, etc.)
Welcome to pay attention to the public account [Mr. Empty name] for more resources and communication!
👉 premise
Looking at official documents or case studies is a quick way to learn. Please read the previous content first.
👉 Practice
😜 True or false entrance?
In the previous article to find a preliminary entrance code found can not move, this is not right ah, according to the truth to find the entrance should be layered progressive analysis thoroughly, shua shua ka ka ka through the strange meridian eight veins. It’s hard to be stuck here. I read the introduction in the official, found that there is an official process said, she is like the heart of the brain, there is a non-xu management of the whole body.
The official case does have a “procedure” object, so let’s take a look and see if it’s a real entrance.
This process component, from an intuitive point of view, just provides the check function, no other functions, so what does this “mysterious” content actually do?
Let’s take a look at a random process file that inherits from the [ProcedureBase] class, and turn it around to see what the framework author says (take a closer look) :
A flow is a finite state machine that runs through the lifetime of the game. Decoupling the different game states through flow is a good habit.
For a network game, you may need the following processes: check process, update resources process, check the server log in the server list, select the server processes, process, create the role of process flow, for the single machine game, you may need to be in the game options menu to switch between process and the actual game play process.
Therefore, if you want to add a process, you can simply derive it from the [ProcedureBase] class and implement your own process class.
As you can see from the last sentence, each process that inherits the ProcedureBase framework is automatically read and shown in the figure above. Entrance Procedure should be selected from each process to start the process Entrance.
You can also test the custom class inheritance [ProcedureBase] to see if it appears here.
It will.
👉 other
📢 author: Kom and Kom in Kom
📢 reprint instructions – be sure to specify the source: Zhim Granular’s personal home page – column – Nuggets (juejin. Cn)
📢 welcome to like 👍 collect 🌟 message 📝