Esempio n. 1
0
        public void update(float d)
        {
            var tasks = new ArrayList();

            for (var i = 0; i < this.tasks_.Count; ++i)
            {
                Task task = this.tasks_[i] as Task;
                task.update(d);
                if (!task.isOver())
                {
                    tasks.Add(task);
                }
                else
                {
                    task.shutdown();
                }
            }
            this.tasks_ = tasks;
        }
Esempio n. 2
0
        public void update(float d)
        {
            var tasks = new List <Task>();

            for (int i = 0; i < this.shutdown_.Count; ++i)
            {
                this.shutdown_ [i].shutdown();
            }
            this.shutdown_.Clear();
            for (var i = 0; i < this.tasks_.Count; ++i)
            {
                Task task = this.tasks_[i] as Task;
                task.update(d);
                if (!task.isOver())
                {
                    tasks.Add(task);
                }
                else
                {
                    shutdown_.Add(task);
                }
            }
            this.tasks_ = tasks;
        }