Esempio n. 1
0
        protected override void OnPlayerControlLost(Player player)
        {
            nameplateController.HandlePlayerControlLost();
            selectionCircleController.HandlePlayerControlLost();

            base.OnPlayerControlLost(player);
        }
Esempio n. 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);
            }
        }