Skip to content

Commit

Permalink
feat: making SetHostVisibility virtual
Browse files Browse the repository at this point in the history
allows people to override and do custom enable/disable stuff if needed
  • Loading branch information
James-Frowen committed Feb 10, 2023
1 parent 5137249 commit aef174c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private void OnVisibilityChanged(INetworkPlayer player, bool visible)
SetHostVisibility(visible);
}

private void SetHostVisibility(bool visible)
protected virtual void SetHostVisibility(bool visible)
{
for (var i = 0; i < _renderers.Length; i++)
_renderers[i].enabled = visible;
Expand Down

0 comments on commit aef174c

Please sign in to comment.