Пример #1
0
        private Bomb ApplyPowerUps(Bomb target)
        {
            var result = target;

            foreach (var powerUp in _powerUps)
            {
                result = PowerUpApplier.ApplyPowerUp(powerUp, result);
            }
            return(result);
        }
Пример #2
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         Destroy(Instance);
         Instance = this;
     }
     DontDestroyOnLoad(this);
 }