SHARE
TWEET

Untitled

a guest Mar 26th, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Photon.Pun;
  5.  
  6. public class NetworkController : MonoBehaviourPunCallbacks
  7. {
  8.     void Start()
  9.     {
  10.         PhotonNetwork.ConnectUsingSettings(); //Connects to Photon master server
  11.     }
  12.  
  13.     public override void OnConnectedToMaster()
  14.     {
  15.         Debug.Log("We are connected to the " + PhotonNetwork.CloudRegion + " server!");
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top