private Bomb ApplyPowerUps(Bomb target) { var result = target; foreach (var powerUp in _powerUps) { result = PowerUpApplier.ApplyPowerUp(powerUp, result); } return(result); }
private void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(Instance); Instance = this; } DontDestroyOnLoad(this); }