示例#1
0
    public void SpellClicked(PF_GamePlay.PlayerSpellInputs input)
    {
        switch (input)
        {
        case PF_GamePlay.PlayerSpellInputs.Spell1:
            if (!Spell1Button.isOnCD && !Spell1Button.isLocked)
            {
                pUIController.gameplayController.PlayerAttacks(Spell1Button);
            }
            break;

        case PF_GamePlay.PlayerSpellInputs.Spell2:
            if (!Spell2Button.isOnCD && !Spell2Button.isLocked)
            {
                pUIController.gameplayController.PlayerAttacks(Spell2Button);
            }
            break;

        case PF_GamePlay.PlayerSpellInputs.Spell3:
            if (!Spell3Button.isOnCD && !Spell3Button.isLocked)
            {
                pUIController.gameplayController.PlayerAttacks(Spell3Button);
            }
            break;

        case PF_GamePlay.PlayerSpellInputs.Flee:
            pUIController.StartEncounterInput(PF_GamePlay.PlayerEncounterInputs.Evade);
            break;

        case PF_GamePlay.PlayerSpellInputs.UseItem:
            pUIController.UseItem();
            break;
        }
    }
示例#2
0
    public void SpellClicked(PF_GamePlay.PlayerSpellInputs input)
    {
        switch (input)
        {
        case PF_GamePlay.PlayerSpellInputs.Spell1:
            Debug.Log("Spell1");
            if (!Spell1Button.isOnCD && !Spell1Button.isLocked)
            {
                //playerSelectedInput = PF_GamePlay.PlayerSpellInputs.Spell1;
                pUIController.gameplayController.PlayerAttacks(Spell1Button);
            }
            break;

        case PF_GamePlay.PlayerSpellInputs.Spell2:
            Debug.Log("Spell2");
            //playerSelectedInput = PF_GamePlay.PlayerSpellInputs.Spell2;
            pUIController.gameplayController.PlayerAttacks(Spell2Button);
            break;

        case PF_GamePlay.PlayerSpellInputs.Spell3:
            Debug.Log("Spell3");
            //playerSelectedInput = PF_GamePlay.PlayerSpellInputs.Spell3;
            pUIController.gameplayController.PlayerAttacks(Spell3Button);
            break;

        case PF_GamePlay.PlayerSpellInputs.Flee:
            //playerSelectedInput = PF_GamePlay.PlayerSpellInputs.Flee;
            this.pUIController.StartEncounterInput(PF_GamePlay.PlayerEncounterInputs.Evade);
            Debug.Log("Flee");
            break;

        case PF_GamePlay.PlayerSpellInputs.UseItem:
            //playerSelectedInput = PF_GamePlay.PlayerSpellInputs.UseItem;
            pUIController.UseItem();
            Debug.Log("UseItem");
            break;
        }
    }