Skip to content

Instantly share code, notes, and snippets.

@SocketWeaver
Created June 16, 2019 23:09
Show Gist options
  • Save SocketWeaver/3479867958005fedec2d0c85f3d20100 to your computer and use it in GitHub Desktop.
Save SocketWeaver/3479867958005fedec2d0c85f3d20100 to your computer and use it in GitHub Desktop.
Return early if don't have ownership of the GameObject
void Update()
{
if (player.Dead || !networkID.IsMine)
{
return;
}
.
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment