2020-04-20 20:00:00 +09:30
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
pass
|
|
|
|
|
|
|
|
func spawn_ore():
|
|
|
|
if len($DumpZone.get_overlapping_bodies()) <= 0:
|
|
|
|
var product = Constants.MATERIAL_SCENES[Constants.MATERIAL_TYPE.iORE].instance()
|
|
|
|
var outpos = position
|
|
|
|
product.position = outpos
|
2020-04-20 23:45:33 +09:30
|
|
|
$"../../Objects".add_child(product)
|
2020-04-20 20:00:00 +09:30
|
|
|
|
|
|
|
|
|
|
|
func _on_Timer_timeout():
|
|
|
|
spawn_ore()
|