public void Destroy() { foreach (BattleUnitModel unit in BattleObjectManager.instance.GetAliveList()) { if (unit.bufListDetail.GetActivatedBufList().Find((Predicate <BattleUnitBuf>)(x => x is HitDebuff)) is HitDebuff Hit) { Hit.Destroy(); } if (unit.bufListDetail.GetActivatedBufList().Find((Predicate <BattleUnitBuf>)(x => x is HitDebuffEnemy)) is HitDebuffEnemy HitEnemy) { HitEnemy.Destroy(); } } }