예제 #1
0
 private void Awake()
 {
     if (instance != null && instance != this)
     {
         gameObject.SetActive(false);
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
         GameplaySceneName = SceneNames[(int)gameplayScene];
     }
 }
예제 #2
0
 private void Start()
 {
     photonManager = NetworkManagerPhoton.instance;
 }