Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- namespace PUNTutorial
- {
- public class Player : Photon.PunBehaviour {
- Camera playerCam;
- void Awake () {
- DontDestroyOnLoad(gameObject);
- playerCam = GetComponentInChildren<Camera>();
- if(!photonView.isMine)
- {
- playerCam.gameObject.SetActive(false);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement