Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / effect / Hit.cs
  1. using Godot;
  2.  
  3. public class Hit : AnimatedSprite
  4. {
  5. public override void _Ready()
  6. {
  7. Frame = 0;
  8. Playing = true;
  9. }
  10.  
  11. /// <summary>
  12. /// 动画结束, 销毁
  13. /// </summary>
  14. private void _on_Hit_animation_finished()
  15. {
  16. QueueFree();
  17. }
  18. }