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; }
/// <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; }