public Bomb GetFirstTriggerBomb() { Bomb triggerBomb = null; for (int i = 0; i < array.Length; ++i) { Bomb bomb = array[i]; if (bomb.isActive) { if (bomb.CanTrigger() && (triggerBomb == null || triggerBomb.triggerIndex > bomb.triggerIndex)) { triggerBomb = bomb; } } } return(triggerBomb); }