public void SetupUpgradePrefabs(TurretParams turretParams, Transform buildTile)
 {
     _defaultTurretUiPrefabs.Clear();
     _prefabManager = FindObjectOfType <PrefabManager>();
     _buildTile     = buildTile;
     foreach (string turretName in turretParams.Upgrades)
     {
         TurretParams upgradeParams = GlobalVariables.AllTurretParams[turretName];
         _defaultTurretUiPrefabs.Add(_prefabManager.GetTurretUiPrefab(upgradeParams));
     }
 }
    void Start()
    {
        _soundManager = FindObjectOfType <SoundManager>();
        if (_prefabManager != null)
        {
            return;
        }

        _buildTile     = transform;
        _prefabManager = FindObjectOfType <PrefabManager>();
        if (_defaultTurretUiPrefabs.Count > 0)
        {
            return;
        }

        foreach (TurretParams turretParams in GlobalVariables.DefaultTurretsParams)
        {
            _defaultTurretUiPrefabs.Add(_prefabManager.GetTurretUiPrefab(turretParams));
        }
    }