added money and money counter
This commit is contained in:
@@ -12,10 +12,11 @@ func _ready():
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func breaking():
|
||||
func breaking(current_velocity):
|
||||
var spawn_broken = broken_object.instantiate()
|
||||
spawn_broken.position = global_position
|
||||
spawn_broken.transform.basis = global_transform.basis
|
||||
spawn_broken.rotation = rotation
|
||||
|
||||
get_tree().get_root().add_child(spawn_broken)
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user