modification de l'UI en 3D et renommage des particules
This commit is contained in:
18
common/vfx/particles/scripts/effect_particles.gd
Normal file
18
common/vfx/particles/scripts/effect_particles.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user