Beispiel #1
0
        public MessageService(MessengerConfiguration configuration, ILog log, IMessageMapper mapper, IMessageProviderFactory factory)
        {
            this.State = MessengerState.Stopped;

            this.logger          = log;
            this.Configuration   = configuration;
            this.ProviderFactory = factory;
            this.Mapper          = mapper;
        }
Beispiel #2
0
        private void OpenAnswerPanel()
        {
            state        = MessengerState.PickAnswer;
            waitForInput = true;

            choicePanel.gameObject.SetActive(true);

            choicePanel.UpdateChoices(currentDialog.choices);
        }
Beispiel #3
0
        private IEnumerator MaxWritingCoroutine(string text)
        {
            state = MessengerState.MaxWriting;

            yield return(new WaitForSeconds(delayBetweenReplies / 2));

            conversationPanel.DisplayIsWriting(true);
            yield return(new WaitForSeconds(text.Length * delayPerLetter));

            conversationPanel.DisplayIsWriting(false);
            //yield return new WaitForSeconds(delayBetweenReplies / 2);
            conversationPanel.WriteMax(text);
            audioSource.PlayOneShot(sfx_notification);

            Next();
        }
Beispiel #4
0
        private IEnumerator MoWritingCoroutine(string text)
        {
            state = MessengerState.MoWriting;

            textInputPlaceholder.enabled = false;

            bool wait = true;

            textInput.Display(text, false, () => wait = false);
            yield return(new WaitWhile(() => wait));

            yield return(new WaitForSeconds(delayBetweenReplies));

            //yield return new WaitForSeconds(delayBetweenReplies + text.Length * delayPerLetter);
            conversationPanel.WriteMo(text);
            audioSource.PlayOneShot(sfx_send);

            textInput.SetTxt("");
            textInputPlaceholder.enabled = true;

            Next();
        }
Beispiel #5
0
 public MessengerBuddy(int buddyUserId, string buddyUsername, string buddyClothing, string buddyMotto, int buddyLastOnline, MessengerState buddyMessengerState, bool buddyHideInRoom)
 {
     _buddyUserId = buddyUserId;
 }