Starting system
This commit is contained in:
parent
aa1c1c8d64
commit
57c178716e
10 changed files with 63 additions and 49 deletions
|
|
@ -12,13 +12,12 @@ func on_body_entered(body: Node3D):
|
|||
if body is DroppableWeapon:
|
||||
if weapon_system.can_add(body.slot) == false:
|
||||
return
|
||||
var weapon = weapon_spawner.spawn({
|
||||
weapon_spawner.spawn({
|
||||
"ammo": body.weapon.ammo,
|
||||
"remaining_ammo": body.weapon.remaining_ammo,
|
||||
"scene_file_path": body.weapon.scene_file_path,
|
||||
"slot": body.slot
|
||||
})
|
||||
weapon_system.on_weapon_added(weapon)
|
||||
|
||||
Session.despawn(body.get_path())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue