void CheckUnderDropsAreAllSame() { int type = dropLane.DestroyIfUnderDropsAreAllSame(); if (type != -1) // 3つ同時消しした時の処理 { playerAttackRemaining.Recover(0.4f); PlayerHP.Recovery(10f); float addPower = Mathf.Pow(2.3f, 2) * attackPowerBase; if (type == (int)tDrop.Type.All) { attackPower[0] += addPower; attackPower[1] += addPower; attackPower[2] += addPower; } else { attackPower[type] += addPower; } foreach (var skill in playerSkill) { if ((int)skill.type == type || type == (int)tDrop.Type.All) { skill.Charge(1f); } } ButtonEffect((tDrop.Type)type, 3, addPower); } }