private void Start() { abilityCanvas = GameObject.FindGameObjectsWithTag("AbilitieManager")[0];; manager = abilityCanvas.GetComponent <PowerUpManager>(); mc = GameObject.FindGameObjectWithTag("Generator").GetComponent <ModulesCount>(); }
// Start is called before the first frame update void Start() { inventory = GameObject.FindGameObjectWithTag("Player").GetComponent <Inventory>(); mc = GameObject.FindGameObjectWithTag("Generator").GetComponent <ModulesCount>(); playerAudio = inventory.GetComponent <AudioSource>(); }