示例#1
0
 public void SetData(BossEnemyData.BossEnemyFormation boss_data, GameObject baseObj, GameObject[] walls, EnemyFactory factoryClass)
 {
     EnemyBulletBaseObject   = baseObj;
     WallObjects             = walls;
     hp                      = boss_data.life;
     bossData                = boss_data;
     factory                 = factoryClass;
 }
示例#2
0
 /// <summary>
 /// AIをセット
 /// </summary>
 /// <param name="data">ボスAIデータ</param>
 void SetAI(BossEnemyData.BossAI data)
 {
     movePattern     = data.movePattern;
     bulletPattern   = data.bulletType;
     shotInterval    = data.bulletShotInterval;
     summonInterval  = data.summon_interval;
     summonFormation = factory.getNormalEnemyData().Values.Where(normal => normal.id == data.summon_enemy_form_id);
     Rotation(data.trans_id, data.leap_time);
     speed           = data.speed;
 }