Exemple #1
0
    private void ActivateShields(bool isActive)
    {
        _isShieldsUpActive = isActive;
        if (_shieldsChildComponent)
        {
            _shieldsChildComponent.SetActive(isActive);
        }
        PlayPowerUpAudio();
        if (_shields == null && _shieldsChildComponent != null)
        {
            _shields = _shieldsChildComponent.GetComponent <Shields>();
        }

        if (_shields)
        {
            _shields.FullStrength();
        }
    }