Added Trash bin

This commit is contained in:
Arthur
2022-12-10 12:27:28 +01:00
parent c00792a810
commit 5f00ff20e7
2 changed files with 15 additions and 0 deletions

9
scripts/Modules/Bin.gd Normal file
View File

@@ -0,0 +1,9 @@
extends Module
class_name Bin
@onready var train = get_parent() as Train
#------------Methods-------------#
func interact():
train.get_node("CharacterBody3D").inventory = 0