Advertisement
Guest User

Untitled

a guest
Mar 26th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement