예제 #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()
    {
        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;
        }
    }
예제 #3
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;
        }
    }