// プレイヤーの攻撃 public void PlayerAttack(bool[] SkillActive) { // 消した個数を取得 int PieceNum = pieceList.GetListCount(); if (SkillActive[0] == true) { PieceNum += 3; } if (SkillActive[1] == true) { PieceNum += 3; } if (SkillActive[2] == true) { PieceNum += 3; } if (SkillActive[3] == true) { PieceNum += 3; } // 攻撃 enemy.SubPartyLife(PartyAttack * (1 + (PieceNum * 0.2f))); }
// エネミーの攻撃 public void EnemyAttack() { // 消した個数を取得 int PieceNum = pieceList.GetListCount(); // 攻撃 player.SubPartyLife(PartyAttack * (1 + (PieceNum * 0.2f))); }