Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / effects / Effect1.cs
@小李xl 小李xl on 10 May 2023 275 bytes 添加敌人死亡特效
  1. using Godot;
  2.  
  3. public partial class Effect1 : AutoDestroyEffect
  4. {
  5. public override void _Ready()
  6. {
  7. var c = GetNode<GpuParticles2D>("GPUParticles2D");
  8. c.Amount = Utils.RandomRangeInt(2, 6);
  9. c.Emitting = true;
  10.  
  11. base._Ready();
  12. }
  13. }