feat: update vfx
This commit is contained in:
@@ -413,6 +413,18 @@ func play_scatter_knock():
|
||||
await vfx_scatter_knock.animation_finished
|
||||
vfx_scatter_knock.visible = false
|
||||
|
||||
@rpc("any_peer", "call_local", "reliable")
|
||||
func play_playerboard_scatter():
|
||||
"""Show the one-shot scatter VFX over the playerboard UI, but only on the
|
||||
local human player's own client (the board UI belongs to them)."""
|
||||
var is_local = name == str(multiplayer.get_unique_id())
|
||||
var is_bot_check = is_bot or is_in_group("Bots")
|
||||
if not is_local or is_bot_check:
|
||||
return
|
||||
var main = get_tree().get_root().get_node_or_null("Main")
|
||||
if main and main.has_method("play_playerboard_scatter_vfx"):
|
||||
main.play_playerboard_scatter_vfx()
|
||||
|
||||
func _init_managers():
|
||||
movement_manager = load("res://scripts/managers/player_movement_manager.gd").new()
|
||||
movement_manager.name = "MovementManager"
|
||||
|
||||
Reference in New Issue
Block a user