document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. namespace PUNTutorial
  5. {
  6.     public class Player : Photon.PunBehaviour {
  7.         Camera playerCam;
  8.  
  9.         void Awake () {
  10.             DontDestroyOnLoad(gameObject);
  11.             playerCam = GetComponentInChildren<Camera>();
  12.  
  13.             if(!photonView.isMine)
  14.             {
  15.                 playerCam.gameObject.SetActive(false);
  16.             }
  17.         }
  18.     }
  19. }
');