Global refactor
This commit is contained in:
parent
3868af29e3
commit
0589ca4e23
180 changed files with 249 additions and 401 deletions
|
|
@ -1,12 +0,0 @@
|
|||
extends RigidBody3D
|
||||
|
||||
|
||||
var contacts: int = 0
|
||||
|
||||
func _on_body_entered(body: Node) -> void:
|
||||
contacts += 1
|
||||
if contacts > 2:
|
||||
var grenade = load("res://scenes/projectiles/molikman/molikman_molotov_fire.tscn").instantiate()
|
||||
Session.dynamic_objects_spawner.get_parent().add_child(grenade)
|
||||
grenade.global_position = global_position
|
||||
queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue