Clear() public method

Dispose all objects in the pool.
public Clear ( ) : void
return void
Example #1
0
 public static void ClearStaticGLoader()
 {
     if (errorSignPool != null)
     {
         errorSignPool.Clear();
     }
     errorSignPool = null;
 }
 static public int Clear(IntPtr l)
 {
     try {
         FairyGUI.GObjectPool self = (FairyGUI.GObjectPool)checkSelf(l);
         self.Clear();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #3
0
 static int Clear(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.GObjectPool obj = (FairyGUI.GObjectPool)ToLua.CheckObject(L, 1, typeof(FairyGUI.GObjectPool));
         obj.Clear();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #4
0
 public override void Dispose()
 {
     _pool.Clear();
     base.Dispose();
 }