API ReferenceecsdefineState()このページではecs.defineState() ecs.defineState(name) Description Function to define a new state. Parameters PropertyTypeDescriptionnamestringthe unique name of the state in the state machine Returns A new state.