How do GameObjects detect void Update and how to make my custom one.
Hello. How do gameobjects know that void Update means every frame and that OnCollisionEnter means when they collide. Can I make my own? Kind of like this
void OnPositionChange () {
//code goes here
}
And then any script that has that OnPositionChange will recognize it and do something with it when the position changes.
Comment