summaryrefslogtreecommitdiffstats
path: root/assets/weapons/goo_gun/Bullet.gd
diff options
context:
space:
mode:
Diffstat (limited to 'assets/weapons/goo_gun/Bullet.gd')
-rw-r--r--assets/weapons/goo_gun/Bullet.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/weapons/goo_gun/Bullet.gd b/assets/weapons/goo_gun/Bullet.gd
index 1a4c01a..2edba6b 100644
--- a/assets/weapons/goo_gun/Bullet.gd
+++ b/assets/weapons/goo_gun/Bullet.gd
@@ -1,4 +1,10 @@
extends RigidBody
+export var material : Material = null
+
+func _ready():
+ if material != null:
+ $MeshInstance.set("material/0", material)
+
func _on_Bullet_body_entered(_body):
queue_free()