can anyone please tell me what are these three? i'm so confused with loader anime
i'm trying to make a multiplayer fps game and when I scripted launcher, it didn't work so I checked what was wrong and it was like this
---------------------------------------------------launcher script---------------------------------------------------------------
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
namespace com.jack.Multiplayer
{
public class NewBehaviourScript : MonoBehaviourPunCallbacks
{
public void Awake()
{
PhotonNetwork.AutomaticallySyncScene = true;
Connect();
}
public override void OnConnectedToMaster()
{
Debug.Log("connected!");
Join();
base.OnConnectedToMaster();
}
public override void OnJoinedRoom()
{
StartGame();
base.OnJoinedRoom();
}
public override void OnJoinRoomFailed(short returnCode, string message)
{
create();
base.OnJoinRandomFailed(returnCode, message);
}
public void Connect()
{
Debug.Log("trying to connect");
PhotonNetwork.GameVersion = "0.0.0";
PhotonNetwork.ConnectUsingSettings();
}
public void Join()
{
PhotonNetwork.JoinRandomRoom();
}
public void create ()
{
PhotonNetwork.CreateRoom("");
}
public void StartGame()
{
if(PhotonNetwork.CurrentRoom.PlayerCount == 1)
{
PhotonNetwork.LoadLevel(1);
}
} }
}
------------------------------------------------end----------------------------------------------------------------------------------
please help with the 3 objects or script