private IEnumerator AttackFinish() { calledFinishAttack = true; animator.SetBool("ChargingPowerfullAttack", false); yield return(new WaitForSeconds(0.2f)); animator.SetFloat("AttackSpeed", currentWeapon.GetAttackSpeed()); OnAttackFinished(); if (weaponTrailParticle != null) { weaponTrailParticle.Stop(); } isAttackGoing = false; calledFinishAttack = false; yield return(new WaitForSeconds(0.5f)); if (!mover.IsNavMeshAgentEnabled() && !isBlocking) { mover.AllowMove(); } if (chargeParticle != null && !isAttackGoing) { Destroy(chargeParticle); chargeParticle = null; } yield return(new WaitForSeconds(0.8f)); playerCamera.SetCustomNoiseSettings(playerCamera.GetDefaultNoiseSettings()); }
public void StopMeditation() { OnMeditationFinish(); animator.SetTrigger("StopSunMeditation"); backWeaponHolder.transform.Rotate(new Vector3(0, 0, -28), Space.Self); if (sunLight != null) { sunLight.ActivateVirtCamera(false); sunLight.ActivateParticlesMeditation(false); } if (capeCloth != null) { capeCloth.externalAcceleration = new Vector3(0, 0, 0); capeCloth.randomAcceleration = new Vector3(5, 0, 3); } mover.AllowMove(); managerUI.ActivatePanel(1); isMeditating = false; }