10 lines
205 B
GDScript
10 lines
205 B
GDScript
extends Area2D
|
|
|
|
func _physics_process(delta: float) -> void:
|
|
cashInObject()
|
|
|
|
func cashInObject():
|
|
for i in get_overlapping_areas():
|
|
if not i.isCarryied():
|
|
G.addMoney(i.getValue())
|
|
i.queue_free()
|