extends State func enter_state(n): get_player().up() pass func update_state(delta): if Input.is_action_just_pressed("mouse_left"): change_to_state("selected") return func update_state_phy(delta): pass func exit_state(): get_player().down() pass func time_out(): pass func process_message(type:String,n): match type: "mouse_exit": change_to_state("idle") pass