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 GameManager : Photon.PunBehaviour {
  7.         public static GameManager instance;
  8.  
  9.         void Awake()
  10.         {
  11.             if(instance != null)
  12.             {
  13.                 DestroyImmediate(gameObject);
  14.                 return;
  15.             }
  16.             DontDestroyOnLoad(gameObject);
  17.             instance = this;
  18.         }
  19.     }
  20. }
');