예제 #1
0
        void RecycleFeedbackRequestObject(FeedbackRequest request)
        {
            var type = request.GetType();
            Queue <FeedbackRequest> pool;

            if (!m_FeedbackRequestPool.TryGetValue(type, out pool))
            {
                pool = new Queue <FeedbackRequest>();
                m_FeedbackRequestPool[type] = pool;
            }

            pool.Enqueue(request);
        }
예제 #2
0
 /// <summary>
 /// Remove a feedback request from the system
 /// </summary>
 /// <param name="obj">The caller object</param>
 /// <param name="request">The feedback request</param>
 public static void RemoveFeedbackRequest(this IRequestFeedback obj, FeedbackRequest request)
 {
     request.caller = obj;
     removeFeedbackRequest(request);
 }
예제 #3
0
 /// <summary>
 /// Add a feedback request to the system
 /// </summary>
 /// <param name="obj">The caller object</param>
 /// <param name="request">The feedback request</param>
 public static void AddFeedbackRequest(this IRequestFeedback obj, FeedbackRequest request)
 {
     request.caller = obj;
     addFeedbackRequest(request);
 }