Exemplo n.º 1
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>();
        }
Exemplo n.º 2
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>();
 }
Exemplo n.º 3
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>();
 }