public void OnStatusUpdate(string user, int status, bool gotMessage, object message)
{
// this is how you get status updates of friends.
// this demo simply adds status updates to the currently shown chat.
// you could buffer them or use them any other way, too.
ChatChannel activeChannel = this.selectedChannel;
if (activeChannel != null)
{
activeChannel.Add("info", string.Format("{0} is {1}. Msg:{2}", user, status, message));
}
Debug.LogWarning("status: " + string.Format("{0} is {1}. Msg:{2}", user, status, message));
}
}