Beispiel #1
0
 private void SelectAvatar(PreferencesProxy.Avatars avatar)
 {
     Bootstrap.Facade.SendNotification(SoundMediator.Notifications.ClickButton);
     AvatarSelected?.Invoke(avatar);
     AvatarSelection.SetActive(false);
     FormatSelection.SetActive(true);
     SpeakRoutine = StartCoroutine(SpeakRepeat(3));
 }
 public void Show(PreferencesProxy.Avatars avatar, bool danishSpeaks)
 {
     this.danishSpeaks = danishSpeaks;
     gameObject.SetActive(true);
     foreach (var theoObject in theoObjects)
     {
         theoObject.enabled = (avatar == PreferencesProxy.Avatars.Theo);
     }
     foreach (var theaObject in theaObjects)
     {
         theaObject.enabled = (avatar == PreferencesProxy.Avatars.Thea);
     }
     snoreAudioSource.clip = snore;
     snoreAudioSource.loop = true;
     snoreAudioSource.Play();
 }
 private void View_AvatarSelected(PreferencesProxy.Avatars avatar)
 {
     Preferences.Avatar = avatar;
 }
 public AvatarMediator(PreferencesProxy.Avatars avatar, bool danishSpeaks) : base(NAME)
 {
     DanishSpeaks = danishSpeaks;
     Avatar       = avatar;
 }