//Battle Panel private void HandleBattleSelection() { if (Input.GetKeyDown(right)) { if (currentActionBattle < 3) { currentActionBattle++; } } else if (Input.GetKeyDown(left)) { if (currentActionBattle > 0) { currentActionBattle--; } } else if (Input.GetKeyDown(down)) { if (currentActionBattle < 2) { currentActionBattle += 2; } } else if (Input.GetKeyDown(up)) { if (currentActionBattle > 1) { currentActionBattle -= 2; } } playerHud.UpdateBattleAction(currentActionBattle); if (Input.GetKeyDown(confirmBtn)) { if (currentActionBattle == 0) { //attack currentActionBattleMove = 4; state = BattleState.ChooseTarget; attack = true; } else if (currentActionBattle == 1) { //skil; state = BattleState.PlayerMove; playerHud.OpenSkill(); } else if (currentActionBattle == 2) { //defend } else if (currentActionBattle == 3) { //back currentAction = 0; state = BattleState.PlayerChoose; playerHud.CloseFight(); } } else if (Input.GetKeyDown(backBtn)) { state = BattleState.PlayerChoose; playerHud.CloseFight(); } }