示例#1
0
    protected override void Skill()
    {
        attackPower += addPower;
        temPower     = attackPower;
        hp          += addHp;
        maxHp       += addHp;
        MonsterUI hpui = hpUI.GetComponentInChildren <MonsterUI>();

        hpui.maxHp = maxHp;
    }
示例#2
0
    protected override void ChangeState()
    {
        if (monsterCnt != GameManager.instance.monsterOption.AllMonsters.Count)
        {
            attackPower += addPower;
            defensPower += addDefens;
            hp          += addHp;
            maxHp       += addHp;
            MonsterUI hpui = hpUI.GetComponentInChildren <MonsterUI>();
            hpui.maxHp = maxHp;
            monsterCnt = GameManager.instance.monsterOption.AllMonsters.Count;
        }

        if (isAttack)
        {
            action = ACTION.ATTACK;
        }
        else
        {
            action = ACTION.DEFENS;
        }
        isAttack = !isAttack;
    }