public override void OnRelease() { this.dwNextRefreshTime = 0; if (this.stDiamond != null) { this.stDiamond.Release(); this.stDiamond = null; } if (this.stCoupons != null) { this.stCoupons.Release(); this.stCoupons = null; } }
public override void OnUse() { this.stDiamond = (COMDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(COMDT_LUCKYDRAW_INFO.CLASS_ID); this.stCoupons = (COMDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(COMDT_LUCKYDRAW_INFO.CLASS_ID); }
public COMDT_LUCKYDRAW() { this.stDiamond = (COMDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(COMDT_LUCKYDRAW_INFO.CLASS_ID); this.stCoupons = (COMDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(COMDT_LUCKYDRAW_INFO.CLASS_ID); }