Advertisement
Munchy2007

PlayerScore_Full

Jan 10th, 2018
3,989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. namespace PUNTutorial
  6. {
  7.     public class PlayerScore : Photon.PunBehaviour
  8.     {
  9.         int score;
  10.  
  11.         [PunRPC]
  12.         void RPC_AddScore(int amount)
  13.         {
  14.             score += amount;
  15.             Debug.Log("Score: " + score);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement