Exemple #1
0
        public Pvr_Request <T> OnComplete(Pvr_Message <T> .Callback callback)
        {
            if (callback_ != null)
            {
                throw new UnityException("Attempted to attach multiple handlers to a Request.  This is not allowed.");
            }

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