Clear() public méthode

Dispose all objects in the pool.
public Clear ( ) : void
Résultat void
Exemple #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));
     }
 }
Exemple #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));
     }
 }
 public override void Dispose()
 {
     _pool.Clear();
     base.Dispose();
 }