- able to use a leading underscore to define function arguments as unused
This commit is contained in:
parent
785254f98a
commit
8403eb4716
@ -38,7 +38,7 @@ func _ready():
|
||||
_lookCast = get_node(lookingAt_nodepath) as RayCast
|
||||
_lookCast.cast_to = Vector3(0, 0, INTERACT_DISTANCE)
|
||||
|
||||
# TODO: move to Designer:
|
||||
# TODO: move to declaration:
|
||||
ui_interact_nodepath = get_node("HUD").get_node("PressInteract").get_path()
|
||||
|
||||
_inventory = get_node("HUD")
|
||||
|
@ -17,7 +17,7 @@ func _ready():
|
||||
func add_item (name):
|
||||
Logger.info("Adding item \"" + name + "\" to inventory")
|
||||
#TODO: global member for inventory?
|
||||
var text = Texture.new()
|
||||
var text #= Texture.new()
|
||||
if name == "Key":
|
||||
text = load("res://Models/key/key.png")
|
||||
elif name == "Keycard":
|
||||
@ -27,6 +27,6 @@ func add_item (name):
|
||||
rect.texture = text
|
||||
_container.add_child(rect)
|
||||
|
||||
func _process(delta):
|
||||
func _process(_delta):
|
||||
_labelPillLevel.text = "curLevel: " + String(Pills._level)
|
||||
_pillLevel.value = Pills._level
|
Loading…
x
Reference in New Issue
Block a user