modification de l'UI en 3D et renommage des particules
This commit is contained in:
@@ -4,7 +4,7 @@ class_name PlantSprite
|
||||
const PLANTED_SEED_CROP_WIDTH = 50
|
||||
const PLANTED_SEED_POS_Y = 0
|
||||
|
||||
const PARTICLES_SCENE : PackedScene = preload("res://common/vfx/particles/particles.tscn")
|
||||
const PARTICLES_SCENE : PackedScene = preload("res://common/vfx/particles/effect_particles.tscn")
|
||||
|
||||
signal harvest_animation_finished
|
||||
|
||||
@@ -30,9 +30,9 @@ func update_plant_sprite(plant_data : PlantData, with_animation = false):
|
||||
|
||||
func generate_mutation_effects(plant : Plant):
|
||||
for m in plant.data.mutations:
|
||||
var particles_emitter : Particles = PARTICLES_SCENE.instantiate() as CPUParticles2D
|
||||
var particles_emitter : EffectParticles = PARTICLES_SCENE.instantiate() as EffectParticles
|
||||
particles_emitter.setup_particles(
|
||||
Particles.Parameters.new(
|
||||
EffectParticles.Parameters.new(
|
||||
m.get_icon(),
|
||||
PlantMutation.get_rarity_color(m.get_rarity())
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user