Exemplo n.º 1
0
    void LevelLoaded(Scene scene, LoadSceneMode bop)
    {
//		Debug.Log(scene.name);
        if (scene.name == "_FINAL_menu")
        {
            //if (GameMaster.me.managers.transform.childCount == 8) {
            //GameMaster.me.managers.transform.GetChild(7).transform.parent = null;
            //}
            //Destroy(GameMaster.me.managers);
        }
        else
        {
            BulletManager.me.spawnList.Clear();
            GameMaster.me.findUI();
            GameMaster.me.updateUI();
            GameMaster.me.findSpawnPoints();
            player1         = GameMaster.me.player1;
            player2         = GameMaster.me.player2;
            scanlines       = Camera.main.GetComponent <ScanlinesEffect>();
            globalTimescale = 1f;

            GameMaster.me.StartCoroutine(GameMaster.me.Countdown(3));
//			Debug.Log(music);

            if (!musicMix)
            {
                musicMix = music.outputAudioMixerGroup.audioMixer;
            }
        }
//		Debug.Log(musicMix);
    }
Exemplo n.º 2
0
        private void SetupPostProcess()
        {
            _scanLines = content.loadNezEffect <ScanlinesEffect>();

            _scanLines.attenuation     = 0.0f;
            addPostProcessor(_vignette = new VignettePostProcessor(2));
            addPostProcessor(new PostProcessor(2, _scanLines));
            addPostProcessor(_pixelGlitch = new PixelGlitchPostProcessor(1));
            addPostProcessor(_letterbox   = new CinematicLetterboxPostProcessor(2));

            _bloom = new BloomPostProcessor(1);
            addPostProcessor(_bloom);
            _bloom.settings = _bloomSettingsNone;
            // removePostProcessor(_bloom);

            _pixelGlitch.horizontalOffset = 0.0f;
            _pixelGlitch.verticalSize     = 2f;
            _scanLines.linesFactor        = 500f;
            _vignette.power  = 0.8f;
            _vignette.radius = 1.0f;

            _letterbox.letterboxSize = 0.0f;
        }