protected override void OnPlayerControlGained(Player player) { base.OnPlayerControlGained(player); nameplateController.HandlePlayerControlGained(); selectionCircleController.HandlePlayerControlGained(); }
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); } }