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