public static void createPool() { pool_ = new Bullet[POOL_MAX]; for (var i = 0; i < POOL_MAX; ++i) { var task = new Bullet(); task.alive_ = false; pool_[i] = task; } pool_index_ = 0; }