12 lines
244 B
GDScript
12 lines
244 B
GDScript
extends Item
|
|
|
|
func item_process(delta):
|
|
if Input.is_action_just_pressed("shoot"):
|
|
var connected = %Connector.get_connected()
|
|
if connected != null:
|
|
if "power" in connected:
|
|
connected.power -= 10
|
|
|
|
func _init():
|
|
shape = [[true,true]]
|