private void Update() { bManager.bossBar.SetActive(true); bNavMeshC.Destination(bManager.target.transform); //Movimiento if (bNavMeshC.agent.velocity.magnitude > 0.5f) { bManager.anim.SetBool("Walking", true); } else { bManager.anim.SetBool("Walking", false); } CheckDistance(); }
private void Update() { bNavMeshC.Destination(bManager.spawnPosition); bManager.bossBar.SetActive(false); if (bNavMeshC.agent.velocity.magnitude > 0.5f) { bManager.anim.SetBool("Walking", true); } else { bManager.anim.SetBool("Walking", false); } if (Vector3.Distance(transform.position, bManager.spawnPosition) < 2f) { bManager.anim.SetBool("Walking", false); AudioManager.am.MazzSong(); bStateMachineC.EnableState(bStateMachineC.BIdleC); } }