Exemplo n.º 1
0
 private void OnAttackOptionConfirmed(AttackOptionSelected optionSelected)
 {
     attackOption = optionSelected;
     if (attackOption == AttackOptionSelected.Guard)
     {
         GameManager.GetNextBattlePhase();
     }
 }
    private void OnUpSelection()
    {
        var currentSelected = (int)optionSelected;

        currentSelected--;
        if (currentSelected < 0)
        {
            currentSelected = (int)AttackOptionSelected.Guard;
        }
        optionSelected = (AttackOptionSelected)currentSelected;
        UpdateSelected();
    }
    private void OnDownSelection()
    {
        var currentSelected = (int)optionSelected;

        currentSelected++;
        if (currentSelected > (int)AttackOptionSelected.Guard)
        {
            currentSelected = 0;
        }
        optionSelected = (AttackOptionSelected)currentSelected;
        UpdateSelected();
    }