using UnityEngine; using System.Collections; namespace PUNTutorial { public class GameManager : Photon.PunBehaviour { public static GameManager instance; void Awake() { if(instance != null) { DestroyImmediate(gameObject); return; } DontDestroyOnLoad(gameObject); instance = this; } } }