diff options
Diffstat (limited to 'client/map/items/mochi.gd')
-rw-r--r-- | client/map/items/mochi.gd | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/map/items/mochi.gd b/client/map/items/mochi.gd index 77e0ca41..3f873d10 100644 --- a/client/map/items/mochi.gd +++ b/client/map/items/mochi.gd @@ -18,10 +18,8 @@ extends Item var model: MeshInstance3D = load("res://map/items/mochi.tscn").instantiate() -func _init(owned_by_: Node3D): +func _init(owned_by_: Node3D, color: Color): super(owned_by_) - add_child(model) - -func set_color(c: Color): var mat: BaseMaterial3D = model.get_active_material(0) - mat.albedo_color = c + mat.albedo_color = color + base.add_child(model) |