Exemple #1
0
 public static void createPool()
 {
     pool_ = new Enemy[POOL_MAX];
     for (var i = 0; i < POOL_MAX; ++i) {
     var enemy = new Enemy();
     enemy.alive_ = false;
     enemy.type_ = Type.None;
     pool_[i] = enemy;
     }
     pool_index_ = 0;
 }