private void ClearErrorState() { if (_errorSign != null) { ((Container)displayObject).RemoveChild(_errorSign.displayObject); errorSignPool.ReturnObject(_errorSign); _errorSign = null; } }
static public int ReturnObject(IntPtr l) { try { FairyGUI.GObjectPool self = (FairyGUI.GObjectPool)checkSelf(l); FairyGUI.GObject a1; checkType(l, 2, out a1); self.ReturnObject(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int ReturnObject(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.GObjectPool obj = (FairyGUI.GObjectPool)ToLua.CheckObject(L, 1, typeof(FairyGUI.GObjectPool)); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject(L, 2, typeof(FairyGUI.GObject)); obj.ReturnObject(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void ReturnToPool(GObject obj) { _pool.ReturnObject(obj); }