mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
[Net] Fix Multiplayer Bomber custom spawner.
Needed starting beta11 (Godot GH-71129).
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
extends MultiplayerSpawner
|
||||
|
||||
func _spawn_custom(data):
|
||||
func _init():
|
||||
spawn_function = _spawn_bomb
|
||||
|
||||
|
||||
func _spawn_bomb(data):
|
||||
if data.size() != 2 or typeof(data[0]) != TYPE_VECTOR2 or typeof(data[1]) != TYPE_INT:
|
||||
return null
|
||||
var bomb = preload("res://bomb.tscn").instantiate()
|
||||
|
||||
Reference in New Issue
Block a user