Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Server]
- public void AddScore()
- {
- RpcAddScore();
- }
- [ClientRpc]
- void RpcAddScore()
- {
- if(isLocalPlayer)
- {
- score+=5;
- HUD.instance.DisplayScore(score);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement