private void OnPresenceDataSet(AsyncStatus status, ActionAsyncOp op) { if (!op.Success) { ManagerManager.Log("Failed to set presence string return code: [0x" + op.Result.ToString("X") + "]"); return; } ManagerManager.Log("Attempt to set presence string succeeded. Remember rendering this presence string can still fail if require statistics are not defined."); }
static private void OnPresenceDataSet(AsyncStatus status, ActionAsyncOp op) { if (!op.Success) { //Debug.LogError(op.Status+" "); //Debug.LogError("Failed to set presence string return code: [0x" + op.Result.ToString("X") + "]"); return; } // NOTE: Presence string setting will succeed even if the event associated with the stat has never fired // this is because the presence string is rendered dynamically on every request and it may be the case // you are setting the presence string while the event is still in the wind. Xbox Live allows for this. //Debug.LogError("Attempt to set presence string succeeded. Remember rendering this presence string can still fail if require statistics are not defined."); PresenceService.GetPresenceAsync(UsersManager.GetAppCurrentUser().Id, UsersManager.GetAppCurrentUser().UID, OnGetPresence); }