Exemple #1
0
        protected override void OnPlayerControlGained(Player player)
        {
            base.OnPlayerControlGained(player);

            nameplateController.HandlePlayerControlGained();
            selectionCircleController.HandlePlayerControlGained();
        }
Exemple #2
0
        protected override void OnControlStateChanged(Player player, bool underControl)
        {
            if (underControl)
            {
                base.OnControlStateChanged(player, true);

                nameplateController.HandlePlayerControlGained();
                selectionCircleController.HandlePlayerControlGained();
                unitRendererController.UpdateClientsideVisibility();
            }
            else
            {
                unitRendererController.UpdateClientsideVisibility();
                nameplateController.HandlePlayerControlLost();
                selectionCircleController.HandlePlayerControlLost();

                base.OnControlStateChanged(player, false);
            }
        }