| 1234567891011121314151617181920212223242526 |
- using ETModel;
- namespace ETHotfix
- {
- public abstract class Disposer : Object, IDisposable2
- {
- public bool IsFromPool { get; set; }
-
- public bool IsDisposed { get; set; }
- public virtual void Dispose()
- {
- if (this.IsDisposed)
- {
- return;
- }
- this.IsDisposed = true;
- if (this.IsFromPool)
- {
- Game.ObjectPool.Recycle(this);
- }
- }
- }
- }
|