예제 #1
0
    void Update()
    {
        QueenMushroom.GoToPullPush();
        QueenMushroom.PlayerisDead();
        QueenMushroom.TimeToHeal();

        QueenMushroom.GoToDestination(QueenMushroom.Player.position, QueenMushroom.MStat.MoveSpeed, QueenMushroom.rotAnglePerSecond);

        if (QueenMushroom.GetDistanceFromPlayer() < QueenMushroom.MStat.AttackDistance)
        {
            QueenMushroom.GoToPullPush();

            if (QueenMushroom.AttackTimer > QueenMushroom.AttackDelay)
            {
                QueenMushroom.SetState(QueenMushroomState.Attack);
                return;
            }
        }

        else
        {
            QueenMushroom.SetState(QueenMushroomState.Return);
            return;
        }
    }
예제 #2
0
    void Update()
    {
        Dltime += Time.deltaTime;

        QueenMushroom.GoToPullPush();
        QueenMushroom.PlayerisDead();
        QueenMushroom.TurnToDestination();
        QueenMushroom.TimeToHeal();

        if (Dltime > 1.5f)
        {
            if (QueenMushroom.GetDistanceFromPlayer() > QueenMushroom.MStat.AttackDistance)
            {
                QueenMushroom.SetState(QueenMushroomState.Chase);
                Dltime = 0;
                return;
            }

            else
            {
                QueenMushroom.SetState(QueenMushroomState.Return);
                Dltime = 0;
                return;
            }
        }
    }
예제 #3
0
    void Update()
    {
        QueenMushroom.GoToPullPush();

        if (QueenMushroom.GetDistanceFromPlayer() < QueenMushroom.Stat.ChaseDistance && CPlayerManager._instance.isDead == false)
        {
            QueenMushroom.GoToDestination(QueenMushroom.Player.position, QueenMushroom.Stat.MoveSpeed, QueenMushroom.rotAnglePerSecond);
            QueenMushroom.SetState(QueenMushroomState.Chase);
            return;
        }
    }
예제 #4
0
    void Update()
    {
        QueenMushroom.GoToPullPush();
        Dltime += Time.deltaTime;
        QueenMushroom.GoToDestination(transform.position, 0, 0);

        if (Dltime > 2f)
        {
            QueenMushroom.HealEffect.SetActive(false);
            QueenMushroom.SetState(QueenMushroomState.Chase);
            return;
        }
    }
예제 #5
0
    void Update()
    {
        QueenMushroom.ModeChange();
        Dltime += Time.deltaTime;

        if (Dltime > 0.8f)
        {
            CPlayerManager._instance.isPush = false;
            CPlayerManager._instance.isPull = false;
            QueenMushroom.PPEnding          = true;

            QueenMushroom.SetState(QueenMushroomState.Chase);
            return;
        }
    }
예제 #6
0
    void Update()
    {
        QueenMushroom.GoToPullPush();
        QueenMushroom.PlayerisDead();
        QueenMushroom.TimeToHeal();

        if (QueenMushroom.GetDistanceFromPlayer() < QueenMushroom.MStat.AttackDistance)
        {
            if (QueenMushroom.AttackTimer > QueenMushroom.AttackDelay)
            {
                QueenMushroom.SetState(QueenMushroomState.Attack);
                return;
            }
        }

        if (QueenMushroom.GetDistanceFromPlayer() < QueenMushroom.MStat.ChaseDistance && QueenMushroom.GetDistanceFromPlayer() > QueenMushroom.MStat.AttackDistance)
        {
            QueenMushroom.SetState(QueenMushroomState.Chase);
            return;
        }
    }