示例#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);
 }