public void CancelFeverAim() { reticlePosition.gameObject.SetActive(false); if(attackController != null) attackController.EndAttack(); StopCoroutine(); feverUpdate = false; }
private IEnumerator LeverCoroutine(PlayerCharacter c) { attackController.StartAnimation(); while(anim == true) { yield return null; } while (!Input.GetButtonDown(control.buttonA)) { yield return null; } attackController.EndAttack(); textPanel.gameObject.SetActive(false); c.CharacterMovement.SetInput(true); leverEvent.Invoke(); }