void Start() { player = GameObject.FindGameObjectWithTag("Player"); trapPlacer = GameObject.FindGameObjectWithTag("TrapPlacer").GetComponent <TrapPlacer>(); soundVolumeCtrl = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <MixerLevels>(); pauseCanvas.enabled = false; inDialogue = false; }
void Start() { trapPlacerLogic = GetComponent <TrapPlacer>(); }
private void Start() { bank = GameObject.FindGameObjectWithTag("TrapPlacer").GetComponent <TrapPlacer>(); playerFunds = bank.funds; text.text = playerFunds.ToString(); }