Beispiel #1
0
    public void actOn(BattleController.menuOptions action)
    {
        switch (action)
        {
        case BattleController.menuOptions.Atacar:
            BattleController.active = false;
            StartCoroutine("waitToActivate");
            break;

        case BattleController.menuOptions.Cambiar:
            BattleController.active = false;
            teamMenu.SetActive(true);
            break;

        case BattleController.menuOptions.Capturar:
            BattleController.active = false;
            Capture.capturar();
            Debug.Log(Capture.n);
            break;

        case BattleController.menuOptions.Huir:
            SceneController.loadOverworld();
            break;
        }
    }
Beispiel #2
0
    public void selectOption(BattleController.menuOptions option)
    {
        currPointer.SetActive(false);
        switch (option)
        {
        case BattleController.menuOptions.Atacar:
            currPointer = pointerA;
            break;

        case BattleController.menuOptions.Capturar:
            currPointer = pointerCap;
            break;

        case BattleController.menuOptions.Huir:
            currPointer = pointerH;
            break;

        case BattleController.menuOptions.Cambiar:
            currPointer = pointerCmb;
            break;
        }
        currPointer.SetActive(true);
    }
Beispiel #3
0
 void updateOption(BattleController.menuOptions option)
 {
     pointer.selectOption(option);
     currOption = option;
 }