void Awake() { _playerScrapDropAndCollection = GetComponent <PlayerScrapDropAndCollection>(); _towerBuilding = FindObjectOfType <TowerBuilding>(); _scrapInventory = GetComponent <PlayerScrapInventory>(); _towerBuildingUI = FindObjectOfType <TowerBuildingUI>(); _healthSlider.value = PlayerHealth; }
private void Awake() { _towerBuildingUI = FindObjectOfType <TowerBuildingUI>(); }