Last active
June 29, 2016 15:09
-
-
Save glitchersgames/692fc5871a9e100be90835fbcbee6545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SyncVar(hook="OnHasPlayerDefUpdated")] | |
public bool m_HasPlayerDef; | |
void OnHasPlayerDefUpdated( bool hasPlayerDef ) | |
{ | |
if( m_HasPlayerDef == false && hasPlayerDef ) | |
{ | |
// The server now has the data we need! | |
} | |
m_HasPlayerDef = hasPlayerDef; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment