Пример #1
0
    IEnumerator GeishaTransformation()
    {
        _Attacking         = false;
        Attacking          = false;
        isImmune           = true;
        oniForme.isImmune  = true;
        oniForme.CanAttack = false;

        CanAttack = false;
        SetAnimation("Monster_Death", false, 0.5f);
        while (!SpineAnim.CurrentAnim.Contains("Idle"))
        {
            yield return(null);
        }

        if (_CharInfo.Health <= 0f)
        {
            oniForme.isDead = true;
            GeishaFinalDeath();
        }
        else
        {
            _CharInfo.HealthStats.Regeneration = _CharInfo.HealthStats.BaseHealthRegeneration;
            isImmune  = false;
            CanAttack = true;
        }
        BossPhase = bossPhasesType.Phase1_;
    }
Пример #2
0
    public void GeishaFinalDeath()
    {
        if (!oniForme.isDead)
        {
            return;
        }
        CanAttack          = false;
        IsOnField          = false;
        oniForme.IsOnField = false;
        SetFormeAttackReady(this, false);
        SetFormeAttackReady(oniForme, false);
        EventManager.Instance.AddCharacterDeath(this);
        EventManager.Instance.AddCharacterDeath(oniForme);
        StopCoroutine(oniForme.ActiveAI);
        StopCoroutine(ActiveAI);

        BossPhase = bossPhasesType.Phase1_;
        SetAnimation("Idle", true);
        SpineAnim.SetAnimationSpeed(0.6f);
    }