This section renderings
Article Directory
1. build a scene
Open the UI scene
2. Set AnimationPlayer
It needs a total of two animation
Example 5 using the present, so that information from the pop-up plate
This animation requires only a
3. InfoBoard script
#InfoBoard.gd
extends TextureRect
func _ready():
add_to_group("GAME_STATE")
func on_game_over():
$LabelCurrent.text = str(GameData.score)#显示本局成绩
$LabelRecord.text = str(GameData.load_record())#显示历史最好成绩
$AnimationPlayer.play("show")#显示计分板
4. Run
Run Game Scene