Files
seeding-planets/common/vfx/particles/scripts/effect_particles.gd

18 lines
373 B
GDScript

extends CPUParticles2D
class_name EffectParticles
func setup_particles(param : Parameters):
texture = param.texture
modulate = param.color
emitting = true
class Parameters:
var texture : Texture
var color : Color
func _init(
_texture : Texture,
_color : Color = Color.WHITE
):
texture = _texture
color = _color