// Use this for initialization void Start() { var managers = GameObject.FindGameObjectWithTag("Managers"); _gameManager = managers.GetComponent <GameManagerScript>(); _brickManager = managers.GetComponent <BrickManagerScript>(); _powerupManager = managers.GetComponent <PowerupManagerScript>(); _soundManager = managers.GetComponent <SoundManagerScript>(); _brickDestroyEffect = GameObject.FindGameObjectWithTag("ParticleBrickDestroy"); PointValue = 10; HealthTotal = DefaultBrickHealth; Reset(); }
void Start() { _powerupManager = GameObject.FindGameObjectWithTag("Managers").GetComponent <PowerupManagerScript>(); }