Example #1
0
        public void FindReferences()
        {
            var referenceManager = GlobalReferenceManager.ReferenceManager;

            keyboardInputManager = referenceManager.keyboardInputManager;
            _particleSystem      = GetComponentInChildren <ParticleSystem>();
            initialParticleSize  = _particleSystem.startSize;
            idleParticleSize     = initialParticleSize / 2;
            currentParticleSize  = idleParticleSize;
        }
        public void FindReferences()
        {
            var referenceManager = GlobalReferenceManager.ReferenceManager;

            keyboardInputManager = referenceManager.keyboardInputManager;
            coolDownTimer        = new CoolDownTimer
            {
                tickRate = fireRate,
            };
            foundReferences = true;
        }
Example #3
0
 private void FindReferences()
 {
     keyboardInputManager      = FindObjectOfType <KeyboardInputManager>();
     playerManager             = FindObjectOfType <PlayerManager>();
     powerUpRepository         = FindObjectOfType <PowerUpRepository>();
     powerUpManager            = FindObjectOfType <PowerUpManager>();
     asteroidsPooler           = FindObjectOfType <AsteroidsPooler>();
     asteroidSpawner           = FindObjectOfType <AsteroidSpawner>();
     asteroidSpritesRepository = FindObjectOfType <AsteroidSpritesRepository>();
     enemyManager = FindObjectOfType <EnemyManager>();
     uiManager    = FindObjectOfType <UiManager>();
     gameManager  = FindObjectOfType <GameManager>();
 }