retrieve a special user information

I am trying to make car racing game using photon,when two cars come side by side, i want to ask, I want both players to send some values ​​to each other, for example(their name, their cup, etc)

is it possible?

private void OnTriggerEnter(Collider other)
{
if (other.gameObject.CompareTag("Player"))
{
Debug.Log("Player name " + gameObject.GetComponent().owner.NickName);
Debug.Log("Yeni player name " + PhotonNetwork.playerName);
}
}

Best Answer

Answers