public override void ActivateBombs(List <GameObject> bombObjects, Action callBack) { Phases.OnActivationPhaseEnd_Triggers -= PlanTimedDetonation; Phases.OnActivationPhaseEnd_Triggers += PlanTimedDetonation; CurrentBombObjects.AddRange(bombObjects); base.ActivateBombs(bombObjects, callBack); }
private void FinallyDetonateBomb() { BombsManager.UnregisterBomb(BombsManager.CurrentBombObject); CurrentBombObjects.Remove(BombsManager.CurrentBombObject); if (ChosenObstacle != null) { foreach (GenericShip ship in Roster.AllShips.Values) { ShipObstacleDistance shipOstacleDist = new ShipObstacleDistance(ship, ChosenObstacle); if (shipOstacleDist.Range < 2) { RegisterDetonationTriggerForShip(ship); } } } PlayDetonationAnimSound(BombsManager.CurrentBombObject, DetonateObstacle); }