private void SpawnBoss() { GameObject bossGO = Instantiate(_bossPrefab, _bossSpawnPosition, Quaternion.identity); BossShotController bossController = bossGO.GetComponent <BossShotController>(); bossController.SetBossBattle(this); _bossHealthShield = bossGO.GetComponent <EnemyHealthShield>(); _bossHealthShield.OnDamaged += BossBattle_OnDamaged; _bossHealthShield.OnDeath += BossBattle_OnDeath; }
void Start() { shotController = GetComponent <BossShotController>(); moveController = GetComponent <BossMovement>(); }