mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 12:16:14 +01:00
Added GunPowder Animation
This commit is contained in:
@@ -2,10 +2,13 @@ extends Module
|
||||
|
||||
class_name Storage
|
||||
|
||||
enum TYPE {AMMO, GUNPOWDER, FUEL}
|
||||
enum TYPE {CANNONBALL, GUNPOWDER, COAL}
|
||||
|
||||
|
||||
@export var currentType: TYPE
|
||||
|
||||
|
||||
|
||||
#------------Methods-------------#
|
||||
func _ready():
|
||||
var root = get_tree().root.get_child(0)
|
||||
|
||||
@@ -84,4 +84,6 @@ func fill_inventory(type):
|
||||
0:
|
||||
walking = "walking_ball"
|
||||
idle = "idle_ball"
|
||||
|
||||
1:
|
||||
walking = "walking_powder"
|
||||
idle = "idle_powder"
|
||||
|
||||
Reference in New Issue
Block a user