photon pun chatmessage code example
Example: photon chat recieve messagesd
void Update() {
chatClient.Service();
}
public void OnGetMessages( string channelName, string[] senders, object[] messages )
{
string msgs = "";
for ( int i = 0; i < senders.Length; i++ )
{
msgs = string.Format("{0}{1}={2}, ", msgs, senders[i], messages[i]);
}
print(msgs);
}