Ejemplo n.º 1
0
        // 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();
        }
Ejemplo n.º 2
0
 void Start()
 {
     _powerupManager = GameObject.FindGameObjectWithTag("Managers").GetComponent <PowerupManagerScript>();
 }