Beispiel #1
0
    public void useSkill(int idx)
    {
        if (pcSkills [idx].isPassive)
        {
            return;
        }
        if (pcSkillCd [idx] > 0)
        {
            return;
        }
        pcSkillCd [idx] = 5000;

        if (idx == 0)
        {
            player.setTrap();
        }
        else if (idx == 1)
        {
            player.useShield();
        }
        else if (idx == 2)
        {
            player.useBlink();
        }
    }