Awake, Start and Update in Unity

Start() means that when the Script is started, it will be executed once when the start is clicked.
Insert picture description here
Update() means that it will be executed once every frame.
Insert picture description here
Awake() means that it will be executed even if the Script is not started.
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43477024/article/details/112974731