Exemplo n.º 1
0
    /// <summary>
    /// Funzione che gestisce l'evento di morte di una torretta
    /// </summary>
    private void HandleOnTourretDead(int _damage)
    {
        bool canTakeDamage = lifeCtrl.GetCanTakeDamage();

        lifeCtrl.SetCanTakeDamage(true);
        lifeCtrl.TakeDamage(_damage);
        lifeCtrl.SetCanTakeDamage(canTakeDamage);
    }
Exemplo n.º 2
0
    public override void Enter()
    {
        bossCltr = context.GetBossController();
        lifeCtrl = bossCltr.GetBossLifeController();

        lifeCtrl.SetCanTakeDamage(canTakeDirectDamage);

        Debug.Log("Phase 3 Iniziata");
        Complete();
    }
Exemplo n.º 3
0
    public override void Enter()
    {
        bossCtrl         = context.GetBossController();
        bossTourretsCtrl = bossCtrl.GetTourretsController();
        lifeCtrl         = bossCtrl.GetBossLifeController();

        lifeCtrl.SetCanTakeDamage(canTakeDirectDamage);
        bossTourretsCtrl.SetCanAim(false);

        Debug.Log("Phase 2 Iniziata");
        Complete();
    }
Exemplo n.º 4
0
    public override void Enter()
    {
        bossCtrl         = context.GetBossController();
        bossTourretsCtrl = bossCtrl.GetTourretsController();
        coverBlockCtrl   = bossCtrl.GetCoverBlocksController();
        lifeCtrl         = bossCtrl.GetBossLifeController();

        lifeCtrl.SetCanTakeDamage(canTakeDirectDamage);
        coverBlockCtrl.EnableCoverBlocks(true);
        bossTourretsCtrl.TourretsSetup();
        bossTourretsCtrl.SetCanAim(true);

        Debug.Log("Phase 1 Iniziata");
        Complete();
    }