Advertisement
Munchy2007

Unet5Tut6Pt2AddScore

Feb 28th, 2016
5,889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. [Server]
  2. public void AddScore()
  3. {
  4.     RpcAddScore();
  5. }
  6.  
  7. [ClientRpc]
  8. void RpcAddScore()
  9. {
  10.     if(isLocalPlayer)
  11.     {
  12.         score+=5;
  13.         HUD.instance.DisplayScore(score);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement