API ReferenceecsdefineState()onEnter()En esta páginaonEnter() ecs.defineState(name).onEnter(callback) Description Set a callback to run when entering this state. Parameters PropertyTypeDescriptioncallbackfunctiona callback function to run before state enter