From 156420f2a4635a84390e8ff488d12b8f84fea94f Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sun, 12 Dec 2021 20:09:10 +0100 Subject: . --- scripts/enemies.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/enemies.gd') 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()) -- cgit v1.2.3-54-g00ecf