protected override void Skill() { attackPower += addPower; temPower = attackPower; hp += addHp; maxHp += addHp; MonsterUI hpui = hpUI.GetComponentInChildren <MonsterUI>(); hpui.maxHp = maxHp; }
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; }