Basically I want to know about script execution logic. At present same script added into 5 different game object but script is not executing in sequence though object exist in game in sequential order.
Here is script execution order reference image:
I want script to be executed in 1 to 5 order as like their object created/arranged in hierarchy.
So please share your thought regarding this.
I assume you are using the Update method to print to the console. There is no guarantee in which order any of your scripts will be updated.
What you can do is to create a new script, called TailHandler for example, which holds references to your other scripts.
Simply rename the Update method of your current script and invoke that method from the TailHandler.
Now you are in charge of the execution order!