Esempio n. 1
0
 void Awake()
 {
     _pigeonMover = GetComponent<PigeonMover>();
 }
Esempio n. 2
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);
        }