Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 void Start()
 {
     shotController = GetComponent <BossShotController>();
     moveController = GetComponent <BossMovement>();
 }