private void FindReferences() { var referenceManager = GlobalReferenceManager.ReferenceManager; playerManager = referenceManager.playerManager; playerWeapon = playerManager.playerWeapon; powerUpRepository = referenceManager.powerUpRepository; }
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>(); }