Leo bug fixes

This commit is contained in:
2022-12-11 06:06:07 +01:00
parent f2fd6fb376
commit 275c6205e6
8 changed files with 10 additions and 12 deletions

View File

@@ -20,13 +20,13 @@ enum MODULE_TYPE {CANNON, STEERING, ENGINE, STORAGE}
#------------Methods-------------#
func interact(player):
func interact(_player):
pass
func _ready():
var root = get_tree().root.get_child(0)
#var root = get_tree().root.get_child(0)
pass
#-----------Setter and Getter---------------#
func _set_currentStashValue(newValue):

View File

@@ -11,7 +11,7 @@ enum TYPE {AMMO, GUNPOWDER, COAL, LARGE, GIANT}
@export var audioClip : AudioStreamWAV
#------------Methods-------------#
func _ready():
var root = get_tree().root.get_child(0)
#var root = get_tree().root.get_child(0)
#root.ammo_pickup.connect(_on_signal_storing)
maxStashValue = 10
currentStashValue = 10

View File

@@ -26,7 +26,7 @@ func _ready():
idle = "idle"
func _physics_process(delta):
func _physics_process(_delta):
if(velocity.length() > 0):
$AnimatedSprite3D.play(walking)
else: