コード例 #1
0
 public void Clear()
 {
     for (int i = 0, imax = mCallbacks.Count; i < imax; i++)
     {
         CallbackHolderBase.Cache(mCallbacks[i]);
     }
     mCallbacks.Clear();
 }
コード例 #2
0
            private void OnLoaded(Object obj)
            {
                int count = mCallbacks.Count;

                onPreCallbacks(this, obj, count);
                for (int i = 0; i < count; i++)
                {
                    CallbackHolderBase callback = mCallbacks[i];
                    callback.OnLoaded(obj);
                    CallbackHolderBase.Cache(callback);
                }
                mCallbacks.Clear();
                onPostCallbacks(this, obj);
            }