Example #1
0
 public static void RunCallbacks(uint limit = 0)
 {
     if (limit == 0)
     {
         PXR_Callback.RunCallbacks();
     }
     else
     {
         PXR_Callback.RunLimitedCallbacks(limit);
     }
 }
Example #2
0
        public PXR_Request <T> OnComplete(PXR_Message <T> .Callback callback)
        {
            if (msgCallback != null)
            {
                throw new UnityException("Attempted to attach multiple handlers to a Request.  This is not allowed.");
            }

            msgCallback = callback;
            PXR_Callback.AddRequest(this);
            return(this);
        }
 public static void RunCallbacks(uint limit = 0)
 {
     // default of 0 will run callbacks on all messages on the queue
     if (limit == 0)
     {
         PXR_Callback.RunCallbacks();
     }
     else
     {
         PXR_Callback.RunLimitedCallbacks(limit);
     }
 }
Example #4
0
 void OnApplicationQuit()
 {
     PXR_Callback.OnApplicationQuit();
 }
Example #5
0
 public Request OnComplete(PXR_Message.Callback callback)
 {
     callback_ = callback;
     PXR_Callback.AddRequest(this);
     return(this);
 }