Ejemplo n.º 1
0
 public void Awake()
 {
     Instance = this;
     for (int i = 0; i < this.list.Capacity; ++i)
     {
         CoroutineLockQueueType coroutineLockQueueType = EntityFactory.Create <CoroutineLockQueueType>(this.Domain);
         this.list.Add(coroutineLockQueueType);
         coroutineLockQueueType.Parent = this;
     }
 }
        public override void Dispose()
        {
            if (this.IsDisposed)
            {
                return;
            }

            base.Dispose();

            foreach (var kv in this.lockQueues)
            {
                kv.Value.Dispose();
            }
            this.lockQueues.Clear();

            Instance = null;
        }