// Update is called once per frame private void Update() { //Prevent player from doing anything while being dead if (!thisPlayer.isDead) { // Attack if (Input.GetButtonDown(attackInput)) { Attack(); } // Change Class if ((Input.GetButtonDown(changeClassUpInput) || Input.GetButtonDown(changeClassDownInput)) && !cdmanager.GetClassChangeCooldown()) { SavePlayerState(); bool down = false; if (Input.GetButtonDown(changeClassDownInput)) { down = true; } StartCoroutine(ChangeClass(down)); } } checkFairyAutoswitch(); checkLayer(); UpdateHealthBar(); }