コード例 #1
0
    /// <summary>
    /// Funzione di Setup
    /// </summary>
    /// <param name="_bossCtrl"></param>
    public void Setup(Boss2Controller _bossCtrl)
    {
        bossCtrl     = _bossCtrl;
        bossLifeCtrl = bossCtrl.GetBossLifeController();
        maxBossLife  = bossLifeCtrl.GetMaxBossLife();
        thirdPhase   = false;

        bossLifeCtrl.OnBossTakeDamage += HandleOnBossTakeDamage;
    }
コード例 #2
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();
    }
コード例 #3
0
ファイル: Boss2LaserState.cs プロジェクト: supernikx/YLEM
    public override void Enter()
    {
        groupCtrl     = context.GetLevelManager().GetGroupController();
        bossCtrl      = context.GetBossController();
        laserCtrl     = bossCtrl.GetLaserController();
        lifeCtrl      = bossCtrl.GetBossLifeController();
        collisionCtrl = bossCtrl.GetBossCollisionController();

        lifeCtrl.OnBossDead      += HandleOnBossDead;
        collisionCtrl.OnAgentHit += HandleOnAgentHit;

        laserTimer = laserDuration;
        laserCtrl.StartLaser();
    }
コード例 #4
0
    public override void Enter()
    {
        groupCtrl         = context.GetLevelManager().GetGroupController();
        groupMovementCtrl = groupCtrl.GetGroupMovementController();
        bossCtrl          = context.GetBossController();
        lifeCtrl          = bossCtrl.GetBossLifeController();
        collisionCtrl     = bossCtrl.GetBossCollisionController();
        phaseCtrl         = bossCtrl.GetPhaseController();

        lifeCtrl.OnBossDead         += HandleOnBossDead;
        collisionCtrl.OnAgentHit    += HandleOnAgentHit;
        phaseCtrl.OnThirdPhaseStart += HandleOnThirdPhaseStart;

        suckTimer = suckDuration;
    }
コード例 #5
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();
    }
コード例 #6
0
    public override void Enter()
    {
        groupCtrl     = context.GetLevelManager().GetGroupController();
        bossCtrl      = context.GetBossController();
        tourretsCtrl  = bossCtrl.GetTourretsController();
        collisionCtrl = bossCtrl.GetBossCollisionController();
        lifeCtrl      = bossCtrl.GetBossLifeController();

        tourretsCtrl.OnTourretDead     += HandleOnTourretDead;
        tourretsCtrl.OnAllTourretsDead += HandleOnAllTourretsDead;
        collisionCtrl.OnAgentHit       += HandleOnAgentHit;
        lifeCtrl.OnBossDead            += HandleOnBossDead;

        tourretsShootRoutine = TourretsShootCoroutine();
        tourretsCtrl.StartCoroutine(tourretsShootRoutine);
    }
コード例 #7
0
    public override void Enter()
    {
        groupCtrl     = context.GetLevelManager().GetGroupController();
        bossCtrl      = context.GetBossController();
        lifeCtrl      = bossCtrl.GetBossLifeController();
        collisionCtrl = bossCtrl.GetBossCollisionController();
        tourretsCtrl  = bossCtrl.GetTourretsController();
        phaseCtrl     = bossCtrl.GetPhaseController();

        timer    = 0;
        waitTime = Random.Range(waitTimeRange.x, waitTimeRange.y);

        lifeCtrl.OnBossDead            += HandleOnBossDead;
        collisionCtrl.OnAgentHit       += HandleOnAgentHit;
        tourretsCtrl.OnTourretDead     += HandleOnTourretDead;
        tourretsCtrl.OnAllTourretsDead += HandleOnAllTourretDead;
        phaseCtrl.OnThirdPhaseStart    += HandleOnThirdPhaseStart;
    }