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; } }
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; } }
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; } }