Add UI to all players

I have this device controlling the main functions, and the UI is separate but the two interact. I think that having this device decide who to display the timer to, and the other device display based on this, should fix it.

Tested solo and it still worked properly, but will test with another later.

    OnBegin<override>()<suspends> : void =            CaptureAreaDefuse.ControlChangeEvent.Subscribe(OnCaptureAreaControlChange)        CaptureArea.ItemIsDeliveredEvent.Subscribe(OnCaptureAreaItemDelivered)
            Players := GetPlayspace().GetPlayers()
            for (Player : Players):
                if:
                    PlayerUI := GetPlayerUI[player[Player]]
                then:
                    set CountdownTimer = countdown_timer_blue{MaybePlayerUI := option{PlayerUI}, RemainingTime := InitialCountdownTime}
                    CountdownTimer.CountdownEndedEvent.Await()
                    ExplosiveDevice.Explode(Player)
                else:
1 Like