示例#1
0
        private void FindReferences()
        {
            var referenceManager = GlobalReferenceManager.ReferenceManager;

            playerManager     = referenceManager.playerManager;
            playerWeapon      = playerManager.playerWeapon;
            powerUpRepository = referenceManager.powerUpRepository;
        }
示例#2
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>();
 }