forked from team-sg/hero-mark-2
fix most of the script errors and warnings, fixed a couple tiny bugs in the process :)
This commit is contained in:
parent
9435089f21
commit
72733db609
23 changed files with 55 additions and 63 deletions
|
@ -22,8 +22,8 @@ func _ready():
|
|||
#Change color
|
||||
_set_color(color)
|
||||
|
||||
func _set_color(value):
|
||||
color = value
|
||||
func _set_color(new_color):
|
||||
color = new_color
|
||||
if is_inside_tree():
|
||||
sprite.material.set_shader_param("palette", COLORS[color])
|
||||
$Sparkles.color = particle_colors[color]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue