Witam mam problem a mianowicie taki:
w konsoli w Unity wyskakuje mi 1 Error Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonPlayer.cs(48,19): error CS0102: The type 'PhotonPlayer' already contains a definition for 'NickName'
jak kliknę 2x to pokazuje mi kod:
public string NickName
{
get
{
return this.nameField;
}
set
{
if (!IsLocal)
{
Debug.LogError("Error: Cannot change the name of a remote player!");
return;
}
if (string.IsNullOrEmpty(value) || value.Equals(this.nameField))
{
return;
}
this.nameField = value;
Photon
public string NickName
{
get
{
return this.nameField;
}
set
{
if (!IsLocal)
{
Debug.LogError("Error: Cannot change the name of a remote player!");
return;
}
if (string.IsNullOrEmpty(value) || value.Equals(this.nameField))
{
return;
}
this.nameField = value;
PhotonNetwork.playerName = value; // this will sync the local player's name in a room
}
}
Network.playerName = value; // this will sync the local player's name in a room
}
}
Silnik:UnityEngine3D
Plugin:PUN Classic FREE
Visual Studios 2017 community
to pytanie jest następcą poprzedniego pytania