📅  最后修改于: 2022-03-11 14:47:17.627000             🧑  作者: Mango
var Direction = "Left"
func ChangeDirection():
if Direction == "Left":
get_node( "Sprite" ).set_flip_h( false )
Direction = "Right"
elif Direction == "Right":
get_node( "Sprite" ).set_flip_h( true )
Direction = "Left"