I have a big problem, I have sunken unity gives me this error
I can not find the solution anywhere??
Assets / _Scripts / Login.cs (14,14): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
I try to attach the script
[SUB]using System;
using System.Collections;
using ExitGames.Client.Photon;
using ExitGames.Client.Photon.Lite;
using UnityEngine;
public class Login : MonoBehaviour {
PhotonServer _photonServer;
bool _isConnected;
// Use this for initialization
void Start () {
Application.runInBackground = true;
PhotonServer = new PhotonServer();
// Update is called once per frame
void Update () {
try
{
if (_isConnected)
{
_photonServer.Update();
}
}
catch(Exception ex)
{
Debug.Log(ex);
}
}
void OnApplicationQuit()
{
try
{
_photonServer.Disconnect();
}
catch(Exception ex)
{
Debug.Log(ex);
}
}
void OnGui()
{
if (GUI.Button(new Rect(5,5,100,20), "Connect"))
{
PhotonPeer peer = new PhotonPeer(_photonServer, false);
_photonServer.Init(peer, "Localhost:5055", "PhotonIntro");
_isConnected = true;
}
GUI.Label(new Rect(5,30,100,20), _photonServer.Status);
}
}[/SUB]
thanks for everything…