void Awake() { _playerScrapDropAndCollection = GetComponent <PlayerScrapDropAndCollection>(); _towerBuilding = FindObjectOfType <TowerBuilding>(); _scrapInventory = GetComponent <PlayerScrapInventory>(); _towerBuildingUI = FindObjectOfType <TowerBuildingUI>(); _healthSlider.value = PlayerHealth; }
private void Awake() { _playerScrapInventory = FindObjectOfType <PlayerScrapInventory>(); }
private void Start() { _playerInventory = FindObjectOfType <PlayerScrapInventory>(); _playerScraps = _playerInventory.ScrapInventory; }
void Awake() { _scrapInventory = gameObject.GetComponent <PlayerScrapInventory>(); _ressourceManagement = FindObjectOfType <RessourceManagement>(); _sounds = GetComponent <PlayerSounds>(); }
private void Awake() { _ressourceManagement = FindObjectOfType <RessourceManagement>(); _playerInventory = FindObjectOfType <PlayerScrapInventory>(); _uibuttons = new List <GameObject>(); }