kebix.txt
unknown
plain_text
2 months ago
496 B
5
Indexable
using UnityEngine;
using Photon.Pun;
public class KebixLobby : MonoBehaviourPunCallbacks
{
void Start()
{
PhotonNetwork.ConnectUsingSettings();
}
public override void OnConnectedToMaster()
{
PhotonNetwork.JoinLobby();
}
public override void OnJoinedLobby()
{
Debug.Log("Welcome to Kebix Lobby!");
PhotonNetwork.JoinOrCreateRoom("MainRoom", new Photon.Realtime.RoomOptions { MaxPlayers = 20 }, null);
}
}
Editor is loading...
Leave a Comment