Exemple #1
0
 public void PlayMusic(AudioPlaylistType clips)
 {
     if (clips.CrossfadeTime < 0)
     {
         clips.CrossfadeTime = _MusicFade.FadeTime;
     }
     TheAudioSignals.PlayMusicTrack.Dispatch(clips);
 }
Exemple #2
0
    public void OnConstruct()
    {
        InputManager.Reset();

        InputSignals.PlayerReady.AddListener(OnPlayerReady);
        AudioPlaylistType music = new AudioPlaylistType();
        music.Clips.AddRange(IntroAudio);
        TheAudioSignals.PlayMusicTrack.Dispatch(music);
    }
Exemple #3
0
        public void OnConstruct()
        {
            source = GetComponent<AudioSource>();

            AudioPlaylistType music = new AudioPlaylistType();
            music.Clips.Add(MainTheme);
            TheAudioSignals.PlayMusicTrack.Dispatch(music);

            ThePigeonSignals.TurnOffSleezeMusic.AddListener(EndGame);
            ThePigeonSignals.SetPigeonScore.AddListener(ListenScores);
        }
		private void PlayTrack(AudioPlaylistType playlist)
		{
            view.fadeTime = playlist.CrossfadeTime;
		    if (playlist.Clips.Count == 1)
		    {
		        view.Play (playlist.Clips[0], playlist.Loop);
		    }
            else if (playlist.Loop)
            {
                view.PlaySequence(playlist.Clips.ToArray(), playlist.Loop);
            }
			
		}
Exemple #5
0
        private void StartMating(PigeonMover Male)
        {
            _mating = true;
            Winner = Male;
            _initalPosition = transform.position;
            _finalPosition = transform.position;

            _initalRotation = transform.rotation;
            _finalRotation = transform.rotation;

            _matingLerpTime = 0;
            _totalMatingTime = Mathf.Max(Vector3.Distance(_initalPosition, Male.transform.position));

            Male._waitForMate = true;
            //Male.StartMating(MountPoint, _totalMatingTime);

            AudioPlaylistType music = new AudioPlaylistType();
            music.Clips.Add(EndTheme);
            ThePigeonSignals.TurnOffSleezeMusic.Dispatch();
            TheAudioSignals.PlayMusicTrack.Dispatch(music);
        }