using UnityEngine;
using Photon.Pun;
using Photon.Realtime;
public class GameSystem : MonoBehaviourPunCallbacks
{
[SerializeField] private GameObject _player;
[SerializeField] private Transform _spawn;
public void Start()
{
PhotonNetwork.Instantiate(_player.name, _spawn.position, Quaternion.identity);
}
}
Исправь этот скрипт:
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;
public class GameSystem : MonoBehaviourPunCallbacks
{
[SerializeField] private GameObject _player;
[SerializeField] private Transform _spawn;
public void Start()
{
PhotonNetwork.Instantiate(_ player.name , _spawn.position, Quaternion.identity);
}
}
Но выдаёт 2 ошибки в чём дело