public void Setup()
 {
     PlayerPrefs.DeleteAll();
     am = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Achievement Manager")).GetComponent <AchievementManager>();
     gs = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Game Settings")).GetComponent <GameSettingsManager>();
     hm = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Highscore Manager")).GetComponent <HighscoreManager>();
 }
Esempio n. 2
0
 public void Setup()
 {
     am = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Achievement Manager")).GetComponent <AchievementManager>();
     gs = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Game Settings")).GetComponent <GameSettingsManager>();
     hm = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Highscore Manager")).GetComponent <HighscoreManager>();
     notificationIcon = MonoBehaviour.Instantiate(TestConstants.GetResource("Notification Icon").GetComponent <NotificationIcon>());
 }
 public void Setup()
 {
     am     = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Audio Manager")).GetComponent <AudioManager>();
     achm   = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Achievement Manager")).GetComponent <AchievementManager>();
     gs     = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Game Settings")).GetComponent <GameSettingsManager>();
     sm     = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Shop Manager")).GetComponent <ShopManager>();
     player = MonoBehaviour.Instantiate(TestConstants.GetResource("Player"));
     pc     = player.GetComponent <PlayerControl>();
     sm.SetSelectedShipData(Resources.Load <ShipData>("Tests/Mock Ship"));
 }
Esempio n. 4
0
        public void Setup()
        {
            animatedObstacle   = MonoBehaviour.Instantiate(TestConstants.GetResource("Animated Obstacle"));
            obstacleParent     = MonoBehaviour.Instantiate(new GameObject("Obstacles"));
            obstacleSpawner    = MonoBehaviour.Instantiate(TestConstants.GetResource("Spawners/Obstacle Spawner"));
            player             = MonoBehaviour.Instantiate(new GameObject("Player"));
            stationaryObstacle = MonoBehaviour.Instantiate(TestConstants.GetResource("Stationary Obstacle"));

            player.tag = Tags.PLAYER;
            obstacleSpawner.GetComponent <MatchTransformPosition>().SetTarget(player.transform);
        }
        public void Setup()
        {
            achm = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Achievement Manager")).GetComponent <AchievementManager>();
            am   = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Audio Manager")).GetComponent <AudioManager>();
            gs   = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Game Settings")).GetComponent <GameSettingsManager>();
            hm   = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Highscore Manager").GetComponent <HighscoreManager>());
            stationaryObstacle = MonoBehaviour.Instantiate(TestConstants.GetResource("Stationary Obstacle"));
            animatedObstacle   = MonoBehaviour.Instantiate(TestConstants.GetResource("Animated Obstacle"));
            player             = MonoBehaviour.Instantiate(TestConstants.GetResource("Player"));
            powerup            = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerup"));
            sm = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Shop Manager")).GetComponent <ShopManager>();

            pc = player.GetComponent <PlayerCollision>();
            sm.SetSelectedShipData(Resources.Load <ShipData>("Tests/Mock Ship"));
        }
Esempio n. 6
0
        public void Setup()
        {
            am     = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Audio Manager")).GetComponent <AudioManager>();
            achm   = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Achievement Manager")).GetComponent <AchievementManager>();
            gs     = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Game Settings")).GetComponent <GameSettingsManager>();
            player = MonoBehaviour.Instantiate(TestConstants.GetResource("Player"));
            player.transform.position = new Vector3(0f, 0f - 1000f);

            bp  = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerups/Bonus Points"));
            dpp = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerups/Double Points"));
            hp  = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerups/Hyperdrive"));
            ip  = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerups/Invincibility"));
            jp  = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerups/Jump"));
            sdp = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerups/Slow Down"));
            sm  = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Shop Manager")).GetComponent <ShopManager>();
            sup = MonoBehaviour.Instantiate(TestConstants.GetResource("Powerups/Speed Up"));

            pc  = player.GetComponent <PlayerCollision>();
            pcn = player.GetComponent <PlayerControl>();
            ps  = player.GetComponent <PlayerScore>();
        }
Esempio n. 7
0
 public void Setup()
 {
     PlayerPrefs.DeleteAll();
     am = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Audio Manager")).GetComponent <AudioManager>();
     sm = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Shop Manager")).GetComponent <ShopManager>();
 }
Esempio n. 8
0
 public void Setup()
 {
     achm  = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Achievement Manager")).GetComponent <AchievementManager>();
     achnm = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Achievement Notification Manager")).GetComponent <AchievementNotificationManager>();
     am    = MonoBehaviour.Instantiate(TestConstants.GetResource("Managers/Audio Manager")).GetComponent <AudioManager>();
 }