Spectator fix and team color fix

This commit is contained in:
Rendo 2025-11-30 13:31:19 +05:00
commit b0ba8adcd7
3 changed files with 3 additions and 2 deletions

View file

@ -14,6 +14,7 @@ func set_active() -> void:
return
active = true
current = true
top_level = true
func _process(delta: float) -> void:
if active == false or not is_multiplayer_authority():

View file

@ -5,9 +5,8 @@ extends Node
@export var blue_team_texture: Texture2D
func _ready() -> void:
on_player_spawned.call_deferred()
get_tree().create_timer(1).timeout.connect(on_player_spawned)
func on_player_spawned() -> void:
await get_tree().process_frame
if player.team == Session.TEAMS.DEFENCE:
material.albedo_texture = blue_team_texture