My own scripts doesnt work

Options
If I use this following script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NetworkManager : MonoBehaviour
{
    private void Start()
    {
		Photon.Pun.PhotonNetwork.ConnectUsingSettings("v01");
	}

    void Update()
	{
		Debug.Log(Photon.Pun.PhotonNetwork.connectionStateDetailed.ToString());
	}
}
i get this errors:
ba4d78adedf579c958f0883ed31a8285.png
Can someone help me pls, I use Unity 2020.2.1f1

Comments

  • L3sc
    Options
    Fill PhotonServerSettings file according the your game.
    After directly type:
    PhotonNetwork.ConnectUsingSettings();