aboutsummaryrefslogtreecommitdiff
path: root/scripts/enemies.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2021-12-12 20:09:10 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2021-12-12 20:09:10 +0100
commit156420f2a4635a84390e8ff488d12b8f84fea94f (patch)
treeebe53b68a6d6485dc759763ae3851e20c0fe890f /scripts/enemies.gd
parent0f518727c28d3204415db14c7ca0e4f7cb653677 (diff)
.
Diffstat (limited to 'scripts/enemies.gd')
-rw-r--r--scripts/enemies.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/enemies.gd b/scripts/enemies.gd
index 068814a..08cc389 100644
--- a/scripts/enemies.gd
+++ b/scripts/enemies.gd
@@ -2,7 +2,7 @@ extends Node
var _path
var _enemy_blue
-var _dissolve_mat
+var _dissolve_mat : ShaderMaterial
var _fx_holder
var _fx_enemy_damage
@@ -114,4 +114,4 @@ func fx_damage(name):
var instance_model = _shapes[enemy["ops"]].instance()
instance.add_child(instance_model)
- instance.refresh_shader(_dissolve_mat)
+ instance.refresh_shader(_dissolve_mat.duplicate())